$username = mysql_real_escape_string($_POST['username']);
$password = mysql_real_escape_string($_POST['password']);
$checkPassword = mysql_query("SELECT * FROM user_info WHERE Username='$username' AND Password='$password';");
Can this query be bypassed by an injection and if so is anyone able to craft an injection I can use for security testing?
I have tried doing 'x' or 1=1 but mysql_real_escape_string manages to remove the quotes and treats the whole field as a string. Thank you all in advance.