> Use mysql_result or mysql_fetch_array to get your results.
> 
> Example:
> $userName = mysql_reqult($result,0);

Just use mysql_num_rows($result) and count the amount of rows selected.

if(mysql_num_rows($result) == '0')
{
do_user_doesnt_exist_stuff();
}
else
{
do_user_exists_stuff();
}

--------------
Adam Alkins
http://www.rasadam.com
--------------


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to