听前辈说...
听前辈说要在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 "
价格 | 原价 | 到期时间 | 服务 | |
---|---|---|---|---|
" . $row['qq'] . " | ";echo "" . $row['selling_price'] . " | ";echo "" . $row['original'] . " | ";echo "" . $row['expires'] . " | ";echo "" . $row['diamond']." | ";echo "