this is because mysql_query() returns a result identifier for select
statements NOT a string or whatever you expected...
if ($result) {
my query was syntactically ok, but I still don't know anything about the
result
}
else {
my query was semantically invalid.
}
have a look at mysql_result() and mysql_num_rows() to find out more about
the result ouf
your query...
-
andi
Kurth Bemis <[EMAIL PROTECTED]> schrieb in im Newsbeitrag:
[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]