RE: [PHP] SELECT statement

From: Date: Tue, 13 Feb 2001 05:50:30 +0000
Subject: RE: [PHP] SELECT statement
Groups: php.general 
Request: Send a blank email to php-general+get-39357@lists.php.net to get a copy of this message
ok I've changed my code to $sql = "SELECT id, email FROM users WHERE user='$user' and pass='$pass'"; but still no joy can any one suggest why? (& Yes email is a field in the table) Peter > Hi, > > Can you have a SELECT statement (using mysql) that goes something like > > $sql="SELECT id && email FROM table WHERE user='$user' and > pass='$pass'";

« previous php.general (#39357) next »