Hello friends
I facing problem in dealing with magic quotes and javascript .
Actually when i try to dispaly some string (containing magic quotes ) in javascript from database (using php) ,javascript stop working .....
If you're using php to generate javascript code, you need to create valid javascript code, following javascripts syntax rules. php has a function json_encode() that can help you, but you still need to follow the javascript syntax rules.
PHP is much easier to work with if you can turn magic_quotes off. You can then use addslashes() and stripslashes() to control it yourself in order to get it right.
Bookmarks