larrywcc Posted December 27, 2010 Share Posted December 27, 2010 When I update a table in mysql using php and the string has a ' in it, I get an error. Example if a sentence has "I can't do this" I get an error. If I just do "I cant do this" it updates correctly. What do I need to do to make it work correctly ? Quote Link to comment https://forums.phpfreaks.com/topic/222697-mysql-update/ Share on other sites More sharing options...
PFMaBiSmAd Posted December 27, 2010 Share Posted December 27, 2010 See this post - http://www.phpfreaks.com/forums/php-coding-help/please-help-mysql-syntax-error-in-the-insertion/msg1504690/#msg1504690 Quote Link to comment https://forums.phpfreaks.com/topic/222697-mysql-update/#findComment-1151652 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.