RE: [PHP] SELECT statement
| From: | PHPBeginner.com | Date: | Tue, 13 Feb 2001 14:34:01 +0000 |
| Subject: | RE: [PHP] SELECT statement | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39420@lists.php.net to get a copy of this message | ||
Yeah, sure you can:
$sql="SELECT id, email FROM table WHERE user='$user' and
pass='$pass'";
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
maxim@phpbeginner.com
www.phpbeginner.com
-----Original Message-----
From: Peter Houchin [mailto:peterh@vfsa.com.au]
Sent: Tuesday, February 13, 2001 2:30 PM
To: PHP MAIL GROUP
Subject: [PHP] SELECT statement
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'";
and if you can't is there a away around this?
Thanks
Peter