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: ReplyQuote
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.


Options: ReplyQuote

Sorry, only registered users may post in this forum.