note 30634 added to function.addslashes
| From: | rex at teravox dot com | Date: | Mon, 24 Mar 2003 14:35:00 +0000 |
| Subject: | note 30634 added to function.addslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45738@lists.php.net to get a copy of this message | ||
i found this solution for working out javascript along with PHP and Mysql the most effective . first
u use
$text = addslashes($text) and then
$text = str_replace("\'", "'", $text);
it may not be the best way to do it but it did solve my problem
--
http://www.php.net/manual/en/function.addslashes.php
http://master.php.net/manage/user-notes.php?action=edit+30634
http://master.php.net/manage/user-notes.php?action=delete+30634
http://master.php.net/manage/user-notes.php?action=reject+30634