Is this still the warning you get?mysqli_query() returns a mysqli_result object if the query is successful, but returns boolean FALSE if there was a problem. Since you don't check, you're ending up passing FALSE to mysqli_num_rows(), when it expects the object - hence, your error message.Quote:
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/userdir/foobar/guid-checker.php on line ...
PHP Code:/* snip */
$result = $mysqli->query($query);
# right about here, you should be checking if the query was successful or not.
if (mysql_num_rows($result)<1){
/* snip */

