From f54886c481a123414ffe0a910a8f7a40f2fc21ec Mon Sep 17 00:00:00 2001 From: aschwarz Date: Mon, 19 Feb 2024 18:13:39 +0100 Subject: [PATCH] Suchfunktion repariert --- suche.php | 81 +++++++++++++++++++------------------------------------ 1 file changed, 28 insertions(+), 53 deletions(-) diff --git a/suche.php b/suche.php index c0e44ae..940c5ff 100755 --- a/suche.php +++ b/suche.php @@ -42,59 +42,33 @@ select{ --> - + + + @@ -128,9 +102,9 @@ function createCities() ORDER BY kontinent ASC"; $result2 = $db->query ($query2) or die ("Cannot execute query"); - echo " "; - echo "\n"; +# echo "\n"; while ($row2 = $result2->fetch_array()){ echo "\n"; } @@ -144,7 +118,8 @@ function createCities() Land

- +

@@ -203,17 +178,17 @@ function createCities() break; case "auswertung": -if(!isset($_POST['dhtmlgoodies_country'])){ +if(!isset($_POST['kontinent'])){ $kontinent=$_GET['kontinent']; }else{ - $kontinent=$_POST['dhtmlgoodies_country']; + $kontinent=$_POST['kontinent']; } -if(!isset($_POST['dhtmlgoodies_city'])){ +if(!isset($_POST['land'])){ $land=$_GET['land']; }else{ - $land=$_POST['dhtmlgoodies_city']; + $land=$_POST['land']; } if(!isset($_POST['jahrgang'])){