darkcarnival Posted July 13, 2006 Share Posted July 13, 2006 hello,im trying to make a convertor to phpbb. and so far the only problem has been with the topic & post area.now wheever i try to add a topic or post that has ' in it i get this error:[quote]You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 're banning bbcode on this post! [b]cant see this bold[/b][/quote]now i tried to add stripslashes() to the body variable but that didnt work. any ideas? should i try addslashes()?thanks. Quote Link to comment https://forums.phpfreaks.com/topic/14531-mysql-error-please-help/ Share on other sites More sharing options...
ShogunWarrior Posted July 13, 2006 Share Posted July 13, 2006 Yeah, run addslashes to it or [b]mysql_escape_string[/b] Quote Link to comment https://forums.phpfreaks.com/topic/14531-mysql-error-please-help/#findComment-57591 Share on other sites More sharing options...
darkcarnival Posted July 13, 2006 Author Share Posted July 13, 2006 ok then thanks :) Quote Link to comment https://forums.phpfreaks.com/topic/14531-mysql-error-please-help/#findComment-57654 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.