variable interpolation in mysql queries
| From: | Ryan Snow | Date: | Tue, 26 Feb 2002 22:20:01 +0000 |
| Subject: | variable interpolation in mysql queries | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-17313@lists.php.net to get a copy of this message | ||
Hi, Im kinda new to this list. Can anyone tell me what is the proper way
to interpolate my php variables into my mysql queries?
I've been trying $query = "SELECT password FROM users WHERE
login='$login'";
then:
mysql_query($result);
$pd = mysql_result($result);
but I get a message that says: "Supplied Argument is not a valid
MySQL-Link resource"
any ideas, anyone?