Bekomme folgende Fehlermeldung:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /srv/www/htdocs/web2/html/midnight/gbook/sessionhelpers.inc.php on line 42
Hier der Codeabschnitt:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /srv/www/htdocs/web2/html/midnight/gbook/sessionhelpers.inc.php on line 42
Hier der Codeabschnitt:
Code:
function logged_in() { $sql="SELECT id FROM admin WHERE session='".session_id()."' LIMIT 1"; $result= mysql_query($sql); return ( mysql_num_rows($result)==1); }
Kommentar