首页 > CMS > 帝国Empire > 正文

帝国CMS7.0自定义栏目列表应用实例

2024-07-09 22:54:41
字体:
来源:转载
供稿:网友
使用帝国CMS7.0自定义栏目列表应用实例的方法如下:

统计记录 select count(*) as total from [!db.pre!]ecms_news where title like '%深圳%' and classid = 1

查询记录 select * from [!db.pre!]ecms_news where title like '%深圳%' and classid =1 order by id desc

调用数据表ecms_news字段title值等于“深圳 www.vevb.com”的文章

统计记录 select count(*) as total from [!db.pre!]ecms_news where title like '%深圳%' and and classid in(1,2,3,4,5)

查询记录 select * from [!db.pre!]ecms_news where title like '%深圳%' and classid in(1,2,3,4,5) order by id desc

调用多栏目数据信息
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表