Oops.. forgot to CC the group......
----- Original Message ----- 
From: "Jason Bell" <[EMAIL PROTECTED]>
To: "Yassel Omar Izquierdo Souchay" <[EMAIL PROTECTED]>
Sent: Tuesday, July 17, 2001 12:42 PM
Subject: Re: [PHP] php- something that i don't understand 


> try this:
> 
> mysql_connect("YOUR_DB_HOST","DB_USERNAME","DB_PASSWORD");
> mysql_select_db("DB");
> $query = "select * from info where FirstName='$FirstName' and
> LastName='$LastName' and email='$email'";
> $result = mysql_query($query);
> 
> 
> ----- Original Message -----
> From: "Yassel Omar Izquierdo Souchay" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 17, 2001 1:37 PM
> Subject: [PHP] php- something that i don't understand
> 
> 
> 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
> 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to