I had some time to think about it, and I see no way to embed SQL in this statement.
SQL, , , (\' ''). , . , , SQL-.
:
:
$SQL = "SELECT goodies FROM stash WHERE secret='" .
str_replace("'",'',$_POST['secret']) .
"' AND secret2 = '" .
str_replace("'",'',$_POST['secret2']) .
"'";
\ OR 1 = 1 --, :
SELECT goodies FROM stash WHERE secret='\' AND secret2=' OR 1 = 1
MySQL :
SELECT goodies FROM stash WHERE secret='...' OR 1 = 1
, , SQL.
, , . SQL-.