把数据直接通过第三方程序插入到phpwind的数据库中,但在显示时phpwind不能自动分页.
是不是我还有哪个表没有更新?
我只去其中的两个表进行插入
复制代码
mysql_query("SET NAMES GBK");
$fid=2;
$subject="我爱02".rand()."15000你中国";
$content="北京时间5月16消息,据国外媒体报道,d在移动<>领域给用户提供的“选择性”却微乎其微,只不过提供了“黑色”和“白色”的iPhone等产品供用户选择而已。"; 
$author="admin";
$authorid=1;
$postdate=1305449459;
$lastpost=1305449459;
$lastposter="admin";
$ifcheck=1;
$str="$fid,'$author',$authorid,'$subject',$postdate,$lastpost,'$lastposter',$ifcheck";
$fd="fid,author,authorid,subject,postdate,lastpost,lastposter,ifcheck";
mysql_query("insert into  pw_threads($fd)values($str)");
////////////////////////////////////////////////////////////////////////////
$tid=mysql_insert_id();
$userip="192.168.1.200";
$ipfrom="地狱";
//$content=mb_convert_encoding($content,"utf-8");
echo $content;
$fd="tid,userip,ipfrom,content";
$str="$tid,'$userip','$ipfrom','$content'";
mysql_query("insert into pw_tmsgs ($fd) values($str)");