Re: php- something that i don't understand
| From: | Christopher Ostmo | Date: | Tue, 17 Jul 2001 20:41:46 +0000 |
| Subject: | Re: php- something that i don't understand | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58322@lists.php.net to get a copy of this message | ||
Yassel Omar Izquierdo Souchay pressed the little lettered thingies in this order...
> 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
>
>
Change line 7 to this:
$result = mysql_db_query("users", $query) or die(mysql_error());
What is the error after you do that?
Christopher Ostmo
a.k.a. tech@AppIdeas.com
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
web site needs since the
dawn of Internet time (1995)
Business Applications:
http://www.AppIdeas.com/
Open Source Applications:
http://open.AppIdeas.com/