note 75901 added to function.mysql-query
| From: | a at a dot com | Date: | Wed, 20 Jun 2007 23:59:44 +0000 |
| Subject: | note 75901 added to function.mysql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-127843@lists.php.net to get a copy of this message | ||
###The reason that multiple queries are not supported is to help prevent exploits.###
For example, the user could enter something like:
"; DELETE * FROM users;
in the name field of a form, which would erase everything in the table when the query is executed.
By allowing mysql_query to support only single commands, this hole is closed.
----
Server IP: 69.147.83.197
Probable Submitter: 74.110.150.237
----
Manual Page -- http://www.php.net/manual/en/function.mysql-query.php
Edit -- https://master.php.net/note/edit/75901
Del: integrated -- https://master.php.net/note/delete/75901/integrated
Del: useless -- https://master.php.net/note/delete/75901/useless
Del: bad code -- https://master.php.net/note/delete/75901/bad+code
Del: spam -- https://master.php.net/note/delete/75901/spam
Del: non-english -- https://master.php.net/note/delete/75901/non-english
Del: in docs -- https://master.php.net/note/delete/75901/in+docs
Del: other reasons-- https://master.php.net/note/delete/75901
Reject -- https://master.php.net/note/reject/75901
Search -- https://master.php.net/manage/user-notes.php