[snip] > I still want to know what you need to do, test for query execution or > value? It is pretty cut and dried after that.
Value. If there is nothing found in the table that matches, do one thing. If there is, do another. :) [/snip] Then you must test for something returned, not whether or not the query executed. Use mysql_num_rows($person); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php