[snip] $person = mysql_query("Some Statement Here"); if (!$person || $person == 0 || $person == '' || $person == '0') { $result = 1; } else { $result = 4; }
If the SQL statement returns an empty set, shouldn't $result be equal to 1? Instead, I'm getting $result = 4. [/snip] Actually I think we need to see the query == "Some Statement Here". $person in this case is either TRUE or FALSE -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php