[email protected] Posted November 5, 2009 Share Posted November 5, 2009 I have all kinds of data to be inserted in database table //I am getting this error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't Some of my data contains :-), doesn't, ), ;, #,$, etc. Am I getting this error as my table is listed as utf8_general_ci?? What is my fix?? Link to comment https://forums.phpfreaks.com/topic/180378-solved-utf8_general_ci-error/ Share on other sites More sharing options...
trq Posted November 5, 2009 Share Posted November 5, 2009 This is a mysql error, nothing to do with php. Link to comment https://forums.phpfreaks.com/topic/180378-solved-utf8_general_ci-error/#findComment-951583 Share on other sites More sharing options...
Mchl Posted November 5, 2009 Share Posted November 5, 2009 Probably unescaped data. Run mysql_real_escape_string on all variables that are inserted in the query. Link to comment https://forums.phpfreaks.com/topic/180378-solved-utf8_general_ci-error/#findComment-951607 Share on other sites More sharing options...
[email protected] Posted November 5, 2009 Author Share Posted November 5, 2009 Yeah it was un escaped data...It fixed it...thanks!! Link to comment https://forums.phpfreaks.com/topic/180378-solved-utf8_general_ci-error/#findComment-951821 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.