Re: Authenticating User ID/Pass in Database problem

From: Date: Mon, 27 Nov 2000 14:59:13 +0000
Subject: Re: Authenticating User ID/Pass in Database problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-27379@lists.php.net to get a copy of this message
On Mon, Nov 27, 2000 at 08:54:38AM -0600, Jason wrote: > > $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\""; > scrath that, brain fart. the single-quotes aren't the problem. The first guy was probably right about the comma after company :)

« previous php.general (#27379) next »