PHP8
This commit is contained in:
17
suche.php
17
suche.php
@ -106,7 +106,7 @@ function fetch_select(){
|
||||
<option value=''>Select</option>";
|
||||
# echo "<option value='%'";if($row3['kontinent'] == '%'){echo " selected";} echo">Alle </option>\n";
|
||||
while ($row2 = $result2->fetch_array()){
|
||||
echo "<option value='$row2[kid]'";if($row2['kid'] == $row3['kontinent']){echo " selected";} echo">".$row2['kontinent']." </option>\n";
|
||||
echo "<option value='$row2[kid]'";if(isset($row2['kid']) AND isset($row3['kontinent']) AND $row2['kid'] == $row3['kontinent']){echo " selected";} echo">".$row2['kontinent']." </option>\n";
|
||||
}
|
||||
echo"
|
||||
|
||||
@ -141,7 +141,7 @@ function fetch_select(){
|
||||
echo "<select size=\"1\" name=\"jahrgang\">";
|
||||
# echo "<option value='%'";if($row3[kontinent] == '%'){echo " selected";} echo">Alle </option>\n";
|
||||
while ($row2 = $result2->fetch_array()){
|
||||
echo "<option value='$row2[jahrgang]'"; if($row3['jahrgang'] == $row2['jahrgang']){echo " selected"; } echo">$row2[jahrgang]</option>\n";
|
||||
echo "<option value='$row2[jahrgang]'"; if(isset($row3['jahrgang']) AND isset($row2['jahrgang']) AND $row3['jahrgang'] == $row2['jahrgang']){echo " selected"; } echo">$row2[jahrgang]</option>\n";
|
||||
}
|
||||
echo "</select>
|
||||
|
||||
@ -197,9 +197,17 @@ if(!isset($_POST['jahrgang'])){
|
||||
$jahrgang=$_POST['jahrgang'];
|
||||
}
|
||||
|
||||
|
||||
if(isset($_GET["sort"])){
|
||||
$sort = $_GET["sort"];
|
||||
}else{
|
||||
$sort = 'kontinent';
|
||||
}
|
||||
|
||||
if(isset($_GET["option"])){
|
||||
$option = $_GET["option"];
|
||||
}else{
|
||||
$option = 'DESC';
|
||||
}
|
||||
|
||||
if($option == 'ASC'){
|
||||
$option = 'DESC';
|
||||
@ -207,9 +215,6 @@ if($option == 'ASC'){
|
||||
$option = 'ASC';
|
||||
}
|
||||
|
||||
if(!isset($sort)){
|
||||
$sort = "kontinent";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user