I'll provide a simple one here:
$query = "select id from accounts where email='$_POST[email]' and psw='$_POST[password]'";
$result = mysql_query($query,$con);
if($row = mysql_fetch_assoc($result))
return true;
else
return false;
If the password is 1' or '1'='1,then will do the trick!
What other tips have you known?
