Re: resource ID?
| From: | lenar | Date: | Thu, 21 Jun 2001 17:23:53 +0000 |
| Subject: | Re: resource ID? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-54768@lists.php.net to get a copy of this message | ||
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" <kurth@usaexpress.net> wrote in message news:4.3.2.7.2.20010621131806.020e6908@mail.usaexpress.net...
> 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>