hallo,
wieder ein problem.
Es wird keine Auswahlliste angezeigt. Zwar ein Pull down aber ohne Inhalt.
Im Quelltext steht folgende Fehlermeldung:
<b>Warning</b>: Supplied argument is not a valid MySQL result resource in <b>/var/www/htdocs/andi/faq_kurt_cis/menu.php</b> on line <b>20</b><br>.
Ich habe die Zeile im php code markiert.
Wo liegt mein Fehler??
<style>
a:link {color:#cc0000; text-decoration:none; font-family:arial,helvetica,sans-serif; font-size:9pt;}
a:active {color:#cc0000; text-decoration:none; font-family:arial,helvetica,sans-serif; font-size:9pt;}
a:visited {color:#cc0000; text-decoration:none; font-family:arial,helvetica,sans-serif; font-size:9pt;}
a:hover {color:#000000; text-decoration:none; font-family:arial,helvetica,sans-serif; font-size:9pt;}
td {font-family:arial,helvetica,sans-serif; color:#000000; font-size:9pt;}
</style>
<?
$hauptmenu = $HTTP_POST_VARS["hauptmenu"]; // [1]
$db_host = "localhost"; // MySQL Hostname
$db_user = "irgendwas"; // MySQL Benutzername
$db_pass = "irgendwas"; // MySQL Passwort
$db_db = "irgendwas"; // Name der MySQL Datenbank
$db_connect=mysql_connect($db_host,$db_user,$db_pass);
$db_select=mysql_select_db($db_db,$db_connect);
$querystring="select untermenu from kvs_faq_menu where hauptmenu=$hauptmenu";
$query=mysql_query($querystring,$db_connect);
$db_close=mysql_close($db_connect);
echo "<select name="untermenu" size="1">\n";
while($result=mysql_fetch_row($query))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
{
echo "<option>".$result[0]."</option>\n";
}
echo "</select>";
?>
Danke
Gerda