note 42933 deleted from function.mysql-escape-string by vincent
| From: | vincent@php.net | Date: | Wed, 09 Jun 2004 12:20:38 +0000 |
| Subject: | note 42933 deleted from function.mysql-escape-string by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-70567@lists.php.net to get a copy of this message | ||
Note Submitter:
----
When deleting in this mannor, always use a LIMIT statement.
$sql = "delete from table where id=".intval($in)." limit 1";
Just in case something slips by, this will limit any damage caused by it. Always play it safe.