Hello this is my first post on this forum... Here it go! Ok I encrypted my password on the page Register.php In login.php I made script to encrypt the password and then look if does match or not with the Database My problem is there they match but that not working well [quote]<? include "configuration.php"; $db = mysql_connect($host, $login_php, $password); $basedados = mysql_select_db($database); $pass = md5($pass); $check = mysql_query("SELECT * FROM `$table` WHERE login = '$login' AND pass = '$pass'", $db); $count = mysql_num_rows($check); if ( $count == 1 ) { echo "Welcome User"; } else { echo "Login fail"; } ?> [/quote] when I do echo "$count"; give me always 0 with the password What I am doing wrong?