|
我设置 数据库为 utf8了
当我执行
<?php
$link = mysql_connect('localhost', 'root', 'root') or die('Could not connect: ' . mysql_error());
echo 'Connected successfully';
mysql_select_db('video') or die('Could not select database');
mysql_query("set names utf8");
$result=mysql_query("INSERT INTO video_members (uid,username,admin) VALUES ('41','四大','0')") or die(mysql_error());
?>
会有错:
Connected successfullyIncorrect string value: '\xCB\xC4\xB4\xF3' for column 'username' at row 1
怎么回事?
\xCB这种东西是什么啊~~~~ |
|