Re: php- something that i don't understand

From: Date: Tue, 17 Jul 2001 19:49:06 +0000
Subject: Re: php- something that i don't understand
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-58323@lists.php.net to get a copy of this message
Yassel, Do two things: 1. Echo $query, to ensure that it actually is what you think it is 2. Run the query, if you have access, at the mysql console and see what it returns. Then you'll know what to fix. Miles At 03:37 PM 7/17/01 -0500, Yassel Omar Izquierdo Souchay wrote:
Hey guys here is my code 4: mysql_connect() or die ("Problemas conectandose a la base de datos"); 5: $query="select * from info where FirstName='$FirstName' and 6: LastName='$LastName' and email='$email'"; 7: $result = mysql_db_query("users", $query); *8: $r=mysql_fetch_array($result); ************ 9: $count=$r["count"]; and i follow redcieving this message Warning: Supplied argument is not a valid MySQL result resource in c:\inetpub\wwwroot\PhpAndMysqlTest\test2\reg1.php3 on line 8 thanks for your answers Yassel


« previous php.general (#58323) next »