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

remove back slashes

Postby inosent1 » Sun Jul 15, 2012 9:01 pm

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
inosent1
Forum Commoner
 
Posts: 97
Joined: Wed Jan 28, 2009 1:18 pm

Re: remove back slashes

Postby tr0gd0rr » Mon Jul 16, 2012 2:37 pm

It looks like you need to disable magic quotes.
User avatar
tr0gd0rr
Forum Contributor
 
Posts: 305
Joined: Thu May 11, 2006 8:58 pm
Location: Utah, USA


Return to PHP - Code

Who is online

Users browsing this forum: Google [Bot] and 7 guests