note 15078 added to function.mysql-escape-string.php
| From: | php at funnelbox dot com | Date: | Mon, 27 Aug 2001 14:48:06 +0000 |
| Subject: | note 15078 added to function.mysql-escape-string.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17208@lists.php.net to get a copy of this message | ||
good way of staying safe:
//---user submitted info
$i = MrUser"; DROP DATABASE mysql;
//---safety precaution
$es = mysql_escape_string($i);
$result = mysql_query($g);
http://www.php.net/manual/en/function.mysql-escape-string.php