View Single Post
Old 06-06-2005   #5 (permalink)
ParaSnake
Invicible Snake
 
ParaSnake's Avatar
 
Join Date: Sep 2004
Location: Ho Chi Minh City,Vietnam
Posts: 668

Send a message via MSN to ParaSnake Send a message via Yahoo to ParaSnake
I read through ur codes and i realized that u have sth wrong with ur syntax

this is wrong:
PHP Code:
$query "SELECT * FROM $login_table WHERE Username = '$username'"
and this is right:
PHP Code:
$query="SELECT * FROM $login_table WHERE username = '".$username."' "
That`s why ur script doesnt work

And after that i suggest u should recheck the username using "mysql_num_rows" to make sure its is a legal username
__________________
ParaSnake is offline