why won't this work?
PHP Code:
$totalquery = $DB_site->query_first("SELECT* FROM grps WHERE title LIKE '%" . addslashes($search) . "%' ORdescription LIKE '%" . addslashes($search) . "%'");
$totalresults = number_format($DB_site->num_rows($totalquery));
the error i'm getting is
Code:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in \includes\db_mysql.php on line 312