hoangthi Posted March 3, 2012 Share Posted March 3, 2012 $title = 'Wế ầrế Únítếd Stấtệs"; mysql_query("insert into mybb_threads(subject) VALUES('$title')"); And this is in Database(error Font): but I need this: Wế ầrế Únítếd Stấtệs Please help me Link to comment https://forums.phpfreaks.com/topic/258161-need-to-help-insert-to-database-error/ Share on other sites More sharing options...
trq Posted March 3, 2012 Share Posted March 3, 2012 Are you using UTF-8? Link to comment https://forums.phpfreaks.com/topic/258161-need-to-help-insert-to-database-error/#findComment-1323400 Share on other sites More sharing options...
hoangthi Posted March 3, 2012 Author Share Posted March 3, 2012 Thank you for replying, Yes. Utf-8 How can me fix this? Link to comment https://forums.phpfreaks.com/topic/258161-need-to-help-insert-to-database-error/#findComment-1323415 Share on other sites More sharing options...
hoangthi Posted March 3, 2012 Author Share Posted March 3, 2012 Please help me. Who can? Link to comment https://forums.phpfreaks.com/topic/258161-need-to-help-insert-to-database-error/#findComment-1323483 Share on other sites More sharing options...
hoangthi Posted March 4, 2012 Author Share Posted March 4, 2012 Can i use mysql_query("SET NAMES 'utf8'"); after my code connect to database? Link to comment https://forums.phpfreaks.com/topic/258161-need-to-help-insert-to-database-error/#findComment-1323756 Share on other sites More sharing options...
hoangthi Posted March 4, 2012 Author Share Posted March 4, 2012 Can i use mysql_query("SET NAMES 'utf8'"); after my code connect to database? Link to comment https://forums.phpfreaks.com/topic/258161-need-to-help-insert-to-database-error/#findComment-1323759 Share on other sites More sharing options...
fenway Posted March 5, 2012 Share Posted March 5, 2012 You're new -- please read the rules before posting. Link to comment https://forums.phpfreaks.com/topic/258161-need-to-help-insert-to-database-error/#findComment-1323991 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.