note 28429 added to function.addslashes
| From: | mike at gyrate dot org | Date: | Mon, 13 Jan 2003 08:05:22 +0000 |
| Subject: | note 28429 added to function.addslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42045@lists.php.net to get a copy of this message | ||
please note that addslashes will NOT work with mssql, since mssql does not use the backslash
character as an escape mechanism. just double your quotes instead. or use this:
function mssql_addslashes($data) {
$data = str_replace("'", "''", $data);
return $data;
}
--
http://www.php.net/manual/en/function.addslashes.php
http://master.php.net/manage/user-notes.php?action=edit+28429
http://master.php.net/manage/user-notes.php?action=delete+28429
http://master.php.net/manage/user-notes.php?action=reject+28429