Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query Question 1

Status
Not open for further replies.

FLASHfreak1021

Programmer
Dec 11, 2003
90
US
Hey!
I have a site, in which I have a login. When you press the login button, it runs a PHP MySQL query. But I can't figure out how to select multiple fields at the end. Here, i will give you an example:

Code:
$query = "SELECT * FROM $table WHERE Name = '$Name'";

I want to turn that into something like this:

Code:
$query = "SELECT * FROM $table WHERE Name = '$Name'
&
Code:
 Password = '$password'";

Any help will be appreciated.
FLASHfreak :)
 
use the keyword AND instead of the ampersand


rudy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top