i use these
$result = mysql_query("select * from user where user_id='$user_id' && password=PASSWORD('$pass') && level='$level'",$link) or die(mysql_error());
to login. no error but no data found even though data does exist. can anybody help me out. it seems that the system read until that line and whooop...error, no data found....