close

 [php]php MySQL phpMyAdmin 中文亂碼utf8 設定

在header.html
加入

 
 
mysql連線的地方

$dbc=mysql_connect(DB_HOST,DB_USER,DB_PASSWORD) //MAKE the connection mysql_query("SET NAMES 'utf8'");

這樣存入table中,使用phpMyAdmin 2.10.3中看就沒有亂碼了

http://www.adsenseor.com/mysql/256.html

 
arrow
arrow
    全站熱搜

    peicheng 發表在 痞客邦 留言(0) 人氣()