乱码中……
header("Content-type:text/html;charset=utf-8");
mysql_query("set names 'gb2312'");
if(mysql_query('insert into test(name) values("苹果")')){
echo "插入成功";
}else{
echo mysql_error();
echo "插入失败";
}
header("Content-type:text/html;charset=utf-8");
mysql_query("set names 'gb2312'");
if(mysql_query('insert into test(name) values("苹果")')){
echo "插入成功";
}else{
echo mysql_error();
echo "插入失败";
}
2018-04-24
举报