Slashes Appearing in Text Submitted to a MySQL db

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Splitfyre
Forum Newbie
Posts: 9
Joined: Wed Feb 12, 2003 8:27 pm
Location: Vancouver
Contact:

Slashes Appearing in Text Submitted to a MySQL db

Post by Splitfyre »

Here's another issue that I am having. I have a backend content editor and whenever someone submits new content and it is confirmed in the backend, it shows /'s before an apostrophe. It's really weird!!

For example:

Code: Select all

that couldn''t be there
Help! :(
User avatar
redcircle
Forum Commoner
Posts: 43
Joined: Fri Jan 31, 2003 8:47 pm
Location: michigan, usa

Post by redcircle »

before you output to the browser use the stripslashes() function

echo stripslashes($output);
Post Reply