Why is my sql injection which i am trying to practice on not working.
$sql = "INSERT INTO animals VALUES ('', '{$string}', 'rover')";
I have an input box in where i put the following
', ''); drop table dropme; --
and that is swapped for the injection code.
However the sql fails. But when I process the following statement in phpmyadmin then it does work.
INSERT INTO animals VALUES ('',' ', ''); drop table dropme; -- ','rover')";
How can this be? Is my browser automatically escaping it for me