Assuming you want to select both id and email from table, use commas :

    SELECT id,email FROM ...

Also, check out this basic SQL tutorial :

    http://www.sqlcourse.com/

It's fairly useful.

regards,

Philip

On Tue, 13 Feb 2001, Peter Houchin wrote:

> 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
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to