MyBB Community Forums

Full Version: Handling inverted commas in queries
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am writing a simple CMS so my web design clients can update their pages, its just a simple system which users can update their pages using TinyMCE.

My problem is that correctly they cannot use inverted commas ' which is a bit annoying. Any way to get around this? How does mybb do it?
lol, i know it was quick but i have already solved it :p I just needed to use addslashes.

Though if anyone else has anything else i should know about the matter feel free to post Smile
Use mysql_escape_string.

addslashes doesn't properly escape strings with certain multi-byte character combinations.