leachus2002 Posted December 14, 2010 Share Posted December 14, 2010 Hi There, I am putting a form together that when submitted, pumps data in to an SQL DB. However I am having problems with quotation marks - for example, it's and her's and thier's cause an error, because the insert statement takes the quote as the end of the row. How can PHP handle this so that it either removes, or replaces that quote? Thanks Matt Link to comment https://forums.phpfreaks.com/topic/221605-removing-quotations-from-submitted-forms/ Share on other sites More sharing options...
trq Posted December 14, 2010 Share Posted December 14, 2010 All user inputted data needs to be escaped using mysql_real_escape_string before it is used in any queries. Link to comment https://forums.phpfreaks.com/topic/221605-removing-quotations-from-submitted-forms/#findComment-1147090 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.