Kurth Bemis <[EMAIL PROTECTED]> wrote:

 > 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;

because $result is the result of a mysql query and you can not echo
this to get the values instead you for example have to use
mysql_fetch_array to get all the values from the $result.

php.net/mysql

-- 
Henrik Hansen


-- 
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