vaibhavs Posted June 1, 2006 Share Posted June 1, 2006 Hi,I am sure this must have been discussed many times before, but I could not get much info upon searching.I am writing simple scripts to Add / Delete / Modify records in MySQL.Special characters like single quotes, double quotes, back slash, front slash, dollar etc cause a havoc when interacting with MySQL.What is the best way to handles these characters (and other characters which I have missed above) such that they are displayed correctly when viewing, adding & modifying records.All suggestions / examples / pointers are thanked in advance.Thx.regards,Vai Quote Link to comment https://forums.phpfreaks.com/topic/10945-php-mysql-escaping-all-special-characters/ Share on other sites More sharing options...
samshel Posted June 1, 2006 Share Posted June 1, 2006 addslashes(); ormysql_escape_string(); Quote Link to comment https://forums.phpfreaks.com/topic/10945-php-mysql-escaping-all-special-characters/#findComment-40875 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.