onthespot Posted December 6, 2009 Share Posted December 6, 2009 Hello all, just a small problem here which im sure someone will have an answer for. When certain users use the messaging system on my site, if they put an apostrophe in ('), they get en error mysql error message. Cant recall the exact message but I assume its because of the character they are trying to enter. Is there any way around this? Quote Link to comment https://forums.phpfreaks.com/topic/184132-messaging-error/ Share on other sites More sharing options...
Alex Posted December 6, 2009 Share Posted December 6, 2009 Preform mysql_real_escape_string on all data before it's put into the mysql query. Quote Link to comment https://forums.phpfreaks.com/topic/184132-messaging-error/#findComment-972163 Share on other sites More sharing options...
onthespot Posted December 6, 2009 Author Share Posted December 6, 2009 Thanks Quote Link to comment https://forums.phpfreaks.com/topic/184132-messaging-error/#findComment-972166 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.