Dhaval, Without looking into this further, the one thing that stands out to me (I am pretty sure) is the fact that mysql_num_rows() returns an int. So testing for "" (empty string) is not going to work. Try instead: ... if ($check != 0) ... -Jeremy Maziarz Email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
- [PHP] Code works in reverse order... Dhaval Desai
- Jeremy Maziarz