21,886
社区成员
发帖
与我相关
我的任务
分享
header('Content-Type:text/html;charset=gb2312');
$conn=mysql_connect("127.0.0.1","root","lc")or die("不能连接数据库");
mysql_select_db("test") or die("不能选择数据库");
mysql_query("set names 'gb2312'");
$query=@mysql_query("select content from info where content like '%". $_REQUEST[info]."%' order by id ");
while($array=@mysql_fetch_array($query)){
...
}