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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie: need help with php/mysql code

Status
Not open for further replies.

bradsteele

Programmer
Oct 19, 2004
24
CA
Hi,

I am doing the following SQL statement

$sql = "SELECT * FROM usertable WHERE username ='$user' AND password = '$pass'";

and I need to be able to check the returned rows to see if the 'loggedin' value is either true or false, but I can't seem to be able to do this.....I am very new to MYSQL/PHP.

Thanks to anyone that can help.

Brad
 
Read this faq: faq434-3850

If questions remain, let us know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top