Re: resource ID?

From: Date: Thu, 21 Jun 2001 18:17:02 +0000
Subject: Re: resource ID?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54780@lists.php.net to get a copy of this message
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 <kurth@usaexpress.net> schrieb in im Newsbeitrag: 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 >

« previous php.general (#54780) next »