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 Quote Link to comment 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. Quote Link to comment 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.