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? 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. 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 Link to comment https://forums.phpfreaks.com/topic/184132-messaging-error/#findComment-972166 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.