作者:刺猬xiaojie | 来源:互联网 | 2013-08-08 17:41
index.php
===============
==============================
indextest1.php
=======================
|
|
if(empty($id)){$id=3;}
$sql="select * from test where test=$id order by id desc limit 0,15";
$result=mysql_query($sql,$myconn)or die(mysql_error());
while($row=mysql_fetch_array($result))
{
//主要看这里
$tt = iconv("gb2312","UTF-8",$row["hhome2"]);
mysql_close($myconn);?>
原帖来自于网易社区:http://p5.club.163.com/viewArticleByWWW.m?boardId=php&articleId=php_10d5a70a0b63964