Mailinglisten-Archive |
Also ich habe folgendes script: <? session_start(); $link= mysql_connect( "localhost", "", ""); if (! $link ) die("Couldn't connect to DB".mysql_error()); mysql_select_db ("aktien") or die ("Could not select DB $db".mysql_error()); $sql="select * from menu_name where lang=$lang and menuid=$id"; $res=mysql_query($sql); $a_row=mysql_fetch_array($res); print "<H1>$a_row[besch]</H1><BR><BR>"; $sql="select * from menu where user='$grp' and menuid=$id and lang=$lang order by menuorder"; $res=mysql_query($sql); print "<ul>\n"; while ( $a_row=mysql_fetch_array($res) ) { print "<li><A href='$a_row[link]'>$a_row[besch]</A></li>"; } mysql_close($link); print "<br><br>\n"; print "<A href=/menu.php?id=0>Zurück zum Hauptmenü</a>\n"; ?> und im browser bringt er folgenden Fehler: Warning: Supplied argument is not a valid MySQL result resource in /u/apache-ssl/htdocs/menu.php on line 11 Warning: Supplied argument is not a valid MySQL result resource in /u/apache-ssl/htdocs/menu.php on line 17 --- !!NEU!! Fragen und Antworten zu MySQL und dieser Liste unter -->> http://www.4t2.com/mysql
php::bar PHP Wiki - Listenarchive