HOME > PHP > PHP Forum > Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in D:\www\Ampps\www\dev\admin\plugin\menu\menu.php on line 21
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in D:\www\Ampps\www\dev\admin\plugin\menu\menu.php on line 21
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in D:\www\Ampps\www\dev\admin\plugin\menu\menu.php on line 21
Code Code (PHP)
function menu_showNested($parentID) {
global $connection;
$sql = "SELECT * FROM $db_perfix$db_category WHERE parent_id='$parentID' ORDER BY rang";
$result = mysql_query($sql, $connection);
$numRows = mysql_num_rows($result);