Medyman
12-10-2007, 05:47 PM
Hi guys...
Ok, so here's the problem.
I'm using TinyMCE (http://tinymce.moxiecode.com/) in a backend CMS application. I'm then uploading this content into a MySQL database.
The problem is whenever someone types something with an apostrophe, it doesn't upload correctly to the DB. Of course, the apostrophe needs to be escaped.
Is there a way to do this automatically, using stripslashes() or addslashes() for example.
How would I go about implementing that?
Ok, so here's the problem.
I'm using TinyMCE (http://tinymce.moxiecode.com/) in a backend CMS application. I'm then uploading this content into a MySQL database.
The problem is whenever someone types something with an apostrophe, it doesn't upload correctly to the DB. Of course, the apostrophe needs to be escaped.
Is there a way to do this automatically, using stripslashes() or addslashes() for example.
How would I go about implementing that?