[snip] And when I plug values into the query at command line - values that would return an empty set, it executes and returns an empty set. [/snip]
If the query is returning an empty set the value of mysql_num_rows($person) == 0 so $person = mysql_query("The Query"); $thecount = mysql_num_rows($person); echo "$thecount \n"; And tell us what $thecount is... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php