解决帝国cms官方结合项插件静态页classid为空导致无法找到页面问题1 . global $public_r; 改成 global $public_r,$navclassid;2. if($_GET['classid']){$classid=RepPostVar($_GET['classid']);$urlcs.='&classid='.$classid;}改成 if($_GET['classid...
TAG:帝国cms
一直想做个最新更新文章的自定义页面,但没有找到如何一次调用多个表的最新文章,在网上搜了好一会,发现了以下的方法,但是本人还没有尝试,希望需要的朋友调试以下
[ecmsinfo]'select * from (select * from phome_ecms_表名1 where checked=1 and clas...
本文介绍了帝国cms系统中在首页随机调用所有栏目文章的方法,帝国cms如何随机调用文章的例子,需要的朋友参考下。
帝国cms在首页中随机调用所有栏目文章
复制代码 代码示例:
[e:loop={'select * from [!db.pre!]ecms_news where checked=1 order by rand() desc...
SQL:
select a.id,a.classid,a.title,a.titlepic,a.username,a.userid,a.applynum,a.onclick,a.titleurl,b.id,b.classid,count(b.id) fromphome_ecms_news as a left join phone_enewsfava as b on a.id=b.id and a.classid=b.classid where a.classid=1 an...
update phome_ecms_news_data_1 set infotags=left(infotags,char_length(infotags)-1) where right(infotags,1)=',';
以上语句意义:查询phome_ecms_news_data_1这个表的infotags字段,如果最后一个字符是逗号删除最后一个字符。...