View Single Post
Old March 12th, 2008, 4:28 PM   #4 (permalink)
Mark
Surpass Developer
On a golden path...
 
Mark's Avatar
 
Joined in Jan 2004
Lives in Florida
Hosted on decc.surpasshosting.com
466 posts
Gave thanks: 15
Thanked 75 times
PHP Code:
if (mysql_num_rows($sqlCheckUser == "0") || mysql_num_rows($sqlCheckPass == "0"
That part is wrong, you are doing a test inside a function argument. Replace that with the following:

PHP Code:
mysql_num_rows($sqlCheckUser) == 
Roxy is right also, you should have

PHP Code:
or die(mysql_error()) 
after each mysql_query statement also. However if it is a production system, you should really just do die('sorry, mysql error') or something like that so you don't spit sql statements to the client
__________________
Mark
Surpass Hosting Developer
sɹnoʎ uɐɥʇ ɹǝʇʇǝq sı bıs ʎɯ
Mark is offline   Reply With Quote
This user thanks Mark for this great post!
cass_is_awesome (March 12th, 2008)