php, mysqlSeptember 18, 2006 11:56 am
PHP and Mysql special characters
One can use the php function mysql_escape_string() to construct mysql queries that contain special characters like quotes, backslashes, etc. This function handles sinqle quotes well but does not seem to handle double quotes appropriately.
I got better results with the addslashes() function that handles both single and double quotes very well.
The URI to TrackBack this entry is: http://jdev.blogsome.com/2006/09/18/php-and-mysql-special-characters/trackback/
No comments yet.
RSS feed for comments on this post.
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>