I am trying to drop the table on my Denver through SQL injection:
<form method="post" action="http://test1.ru/?menu=admin&sel=rules"> <input type="text" name="tx" value="'; DROP TABLE db_conabrul;"> <input type="submit" value="next"> </form> As soon as I did not try, I can not delete the table. I test on Denver, the right to delete is . Displays just such an error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DROP TABLE db_conabrul;' WHERE id = '1'' at line 1 Table does not pay. Through a direct request to pma everything is ok. But it is necessary through an injection . What am I doing wrong?
The request looks like this:
$db->Query("UPDATE db_conabrul SET rules = '".$_POST["tx"]."' WHERE id = '1'");