MySQL Forums
Forum List  »  Newbie

Re: Storing escaped Strings
Posted by: Antonio DePasquale
Date: February 10, 2014 03:46PM

I'm not sure if PDO is enabled or not (i have the default settings for the XAMPP stack on a windows PC)

Either way, using the mysql->real_escape_string prior to binding them to strings caused the escape character to be stored in the database thus, showing it when it was read back out of the database.

Simply removing those statements, the prepared statement automatically escaped the string without storing the escape character in the database.

Options: ReplyQuote


Subject
Written By
Posted
February 06, 2014 01:10PM
February 06, 2014 03:01PM
February 07, 2014 12:02AM
Re: Storing escaped Strings
February 10, 2014 03:46PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.