WampServer
Apache, PHP, MySQL on Windows
Home forum
Back to WampServer
presentation
Downloads
Addons
Trainings
Alter Way
Go to Topic:
Previous
•
Next
Go to:
Forum List
•
Message List
•
New Topic
•
Search
•
Log In
•
Print View
Apostrophe error
Posted by:
anelson
(66.155.250.---)
Date: June 30, 2006 10:12PM
When I take in a string through $_REQUEST that contains an apostrophe.
It gets inputed in the database as a backslash.
I'm using mysql_real_escape_string() to remove all sql injections. Could this be the problem?
Anybody else ran into the same issue, or have a solution?
Options:
Reply
•
Quote
Re: Apostrophe error
Posted by:
CyberSpatium
(67.170.181.---)
Date: July 02, 2006 02:31PM
when you get data from your database, use the
stripslashes()
function to remove all the backslashes
mysql_real_escape_string()
added to the data.
[
us2.php.net
]
Options:
Reply
•
Quote
Go to:
Forum List
•
Message List
•
Search
•
Log In
Sorry, only registered users may post in this forum.
Click here to login