heh, that basically means that query was ok at least techincally.
When you echo that $result and get nothing - then something went wrong.
The right way to check if query was ok is:

if(is_resource($result))
    echo "Query OK";

or just:

if($result)
    echo "Query OK";

lenar.

"Kurth Bemis" <[EMAIL PROTECTED]> wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i get this:
> 
> Resource id #2
> 
> when i run this code.....whats resource id 2 mean?  i just want to know if 
> the query was ok or not
> 
> $result = mysql_query("SELECT authcode FROM users WHERE email='$email'",$db);
> echo $result;
> 
> ~kurth
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to