PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Dec 22, 2014 7:50 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: remove back slashes
PostPosted: Sun Jul 15, 2012 9:01 pm 
Offline
Forum Commoner

Joined: Wed Jan 28, 2009 1:18 pm
Posts: 97
for some reason when a user enters

Quote:

client's

or

client"s







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

Quote:

client\\\'s

or

client\\\"s






how do i get rid of the backslashes?

i have tried stripslashes, but nothing seems work


Top
 Profile  
 
 Post subject: Re: remove back slashes
PostPosted: Mon Jul 16, 2012 2:37 pm 
Offline
Forum Contributor
User avatar

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group