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'"; -- 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]
- [PHP] SELECT statement Peter Houchin
- Re: [PHP] SELECT statement Philip Olson
- [PHP] Mathematical prob Chris Aitken
- Re: [PHP] Mathematical prob Joe Conway
- Re: [PHP] Mathematical prob David Robley
- Re: [PHP] SELECT statement David Robley
- RE: [PHP] SELECT statement PHPBeginner.com
- RE: [PHP] SELECT statement Peter Houchin
- RE: [PHP] SELECT statement Philip Olson
- RE: [PHP] SELECT statement Peter Houchin
- Re: [PHP] SELECT statement Michael McGlothlin
- Re: [PHP] SELECT statement David Robley
- RE: [PHP] SELECT statement PHPBeginner.com
- [PHP] select statement Wilbert Enserink
- RE: [PHP] select statement John Holmes
- Re: [PHP] select statement Jason Wong