I hava design just a register page and a login page ,a user can register then login..during registration i used the password() for password field insert value to database. During login I used as password('_POST[pass]') and comparing with the inserted value but its not working ....
I just tried this ...
$sql= "SELECT * FROM member WHERE loginName ='".$_POST[user]."' AND password = password('".$_POST."')";
if($db_field = mysql_fetch_assoc($my_user))
print "Username or Password is incorrect";
so please help me...