Re: resource ID?

From: Date: Fri, 22 Jun 2001 18:56:00 +0000
Subject: Re: resource ID?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54922@lists.php.net to get a copy of this message
Kurth Bemis <kurth@usaexpress.net> 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

« previous php.general (#54922) next »