View Single Post
Old March 12th, 2008, 4:36 PM   #5 (permalink)
cass_is_awesome
I killed the bus driver.
On a golden path...
 
cass_is_awesome's Avatar
 
Joined in Mar 2008
Lives in Michigan
Hosted on SH138
382 posts
Gave thanks: 6
Thanked 8 times
Quote:
Originally Posted by Mark View Post
PHP Code:
if (mysql_num_rows($sqlCheckUser == "0") || mysql_num_rows($sqlCheckPass == "0"
Yeah.

I did away with that, like I said above, by just doing a user name and password check inside of the query itself.

It's the first time I've done that, and it saved me a whole lot of work.

The PHP only sets a login cookie if the conditions in the query are met (the username and password must match). Otherwise, it displays an incorrect information error.
__________________
cass_is_awesome is offline   Reply With Quote