phpwind 二次开发的一个小问题
时间:2011-05-20
来源:互联网
把数据直接通过第三方程序插入到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)");
是不是我还有哪个表没有更新?
我只去其中的两个表进行插入
复制代码
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)");
作者: baisoft 发布时间: 2011-05-20
pw_read 有这个表不 以前弄过DZ 一般都插两个表 一个主题列表 一个贴子
作者: qqsweb 发布时间: 2011-05-21
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28