remove back slashes

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
inosent1
Forum Commoner
Posts: 97
Joined: Wed Jan 28, 2009 12:18 pm

remove back slashes

Post by inosent1 »

for some reason when a user enters

client's

or

client"s




in a textarea input or text field, when it returns from the mysql db it looks like this

client\\\'s

or

client\\\"s



how do i get rid of the backslashes?

i have tried stripslashes, but nothing seems work
User avatar
tr0gd0rr
Forum Contributor
Posts: 305
Joined: Thu May 11, 2006 8:58 pm
Location: Utah, USA

Re: remove back slashes

Post by tr0gd0rr »

It looks like you need to disable magic quotes.
Post Reply