Код: Выделить всё
$unsafe_variable = $_POST['user_input'];
mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");
Код: Выделить всё
INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')
Подробнее здесь: https://stackoverflow.com/questions/601 ... ion-in-php
Мобильная версия