欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

听先人说.

程序员文章站 2022-06-16 19:21:39
...
听前辈说...
听前辈说要在php页面加
header("Content-type: text/html; charset=utf-8");
这个,我加了还是乱码噢 ,
就这俩个php页面, 还有俩个页面是分页类来的。。

business_form.php
header("Content-type: text/html; charset=utf-8");
include 'comm.php';
if(isset($_POST['qq'])){
$qq = $_POST['qq'];
$selling_price = $_POST['selling_price'];
$original = $_POST['original'];
$expires = $_POST['expires'];


business_table.php


include 'paging.php';
$con =mysql_connect("localhost","root","123456");
mysql_select_db("business",$con);
$result = mysql_paging_query("SELECT * FROM business_table", 5);
echo "





";
while($row=mysql_fetch_array($result)){
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
}
echo "
QQ 价格 原价 到期时间 服务
" . $row['qq'] . "" . $row['selling_price'] . "" . $row['original'] . "" . $row['expires'] . "" . $row['diamond']."
";
mysql_paging_bar();//显示分页条 下面也来一个
mysql_close($con);

?>


------解决方案--------------------
business_table.php页面 缺少 SET NAMES 'UTF8' 语句
听先人说.

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。

相关文章

相关视频