Kann mir vielleicht jemand sagen wieso dieser Fehler kommt:
"Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Apache2\htdocs\bumspara2\index.php on line 5"
meine index.php sieht folgendermaßen aus:
"Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Apache2\htdocs\bumspara2\index.php on line 5"
meine index.php sieht folgendermaßen aus:
PHP-Code:
<?php
include "inc/config.inc.php";
$res = mysql_query("select userid from tb_online where userid > 0");
$num = mysql_num_rows($res);
include "inc/header.inc.php";
if ($num != 0) {
echo "INHALT";
}
else {
echo "Kein Zugang!";
include "inc/login.inc.php";
}
include "inc/left.inc.php";
include "inc/iFrame.inc.php";
echo "src='start.php'";
include "footer.inc.php";
?>
Kommentar