mysql_query('set names utf-8'); 告訴數(shù)據(jù)庫(kù)以u(píng)tf-8輸入和輸出
2015-06-25
mysql_query('set names utf8'); 告訴數(shù)據(jù)庫(kù)以u(píng)tf-8輸入和輸出
2015-06-25
代碼敲了一下,連接成功可以顯示出來,但是出來這么行字
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in xxxx(反對(duì)用mysql_connection(),未來會(huì)被移除,使用mysqli_connection()或者PDO)
代碼里的mysql_connection()寫成mysqli_connection()也沒啥問題
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in xxxx(反對(duì)用mysql_connection(),未來會(huì)被移除,使用mysqli_connection()或者PDO)
代碼里的mysql_connection()寫成mysqli_connection()也沒啥問題
2015-06-24