Re: Authenticating User ID/Pass in Database problem
| From: | Jason | Date: | Mon, 27 Nov 2000 14:54:38 +0000 |
| Subject: | Re: Authenticating User ID/Pass in Database problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27377@lists.php.net to get a copy of this message | ||
> $query = "select userid, password, company, from registration where
> userid='$userid' and password='$password'";
you're using single quotes around $userid and $password, which prevents
the variables from being replaced with the real values. try:
$query = "select userid, password, company from registration where
userid=\"$userid\" and password=\"$password\"";
--
Jason Burnett
jason@jnj.org
That which does not kill me postpones the inevitable.