我想在我的数据库中添加汉字。我加了这个黔西南布依族苗族自治州,对这个有帮助吗?
header('Content-Type: text/html; charset=utf-16');
header('Content-Type: text/html; charset=utf-8');
if(isset($_POST['totalprice'])){
$totalprice=$_POST['totalprice'];
$price=$_POST['price'];
$qty=$_POST['count'];
$color=$_POST['color'];
$name=$_POST['name'];
$phone=$_POST['phone'];
$address=$_POST['address'];
$province=$_POST['province'];
$city=$_POST['city'];
$region=$_POST['region'];
$payment=$_POST['payment'];
$message=$_POST['message'];
$model=$_POST['model'];
$commodity=$_POST['commodity'];
$totalprice=$_POST['totalprice'];
$name=$_POST['name'];
$description='';
$sql="INSERT INTO `orderItems`( `commodity`, `model`, `color`, `qty`, `total`) VALUES ('$commodity','".$model."','".$color."','".$qty."','".$totalprice."')";
$db->query($sql);
}
守候你守候我
千巷猫影