不行呀,我是用的 [ecmsinfo]"select * from phome_ecms_article where id=7 and classid in (2,3,4) order by rand() desc limit 6 ",8,40,1,24,2,0[/ecmsinfo] 这样对吗? id=XX 是指的什么?我写的是文章系统数据表的ID号 classid in (2,3,4) 这是指的终级栏目吗? 我是按以上填的,结果没有提示什么错误,只是一片空白
我是这样写的: [ecmsinfo]"select * from phome_ecms_article where classid in (5,6) order by rand() desc limit 10",10,20,0,24,7,1[/ecmsinfo] 相对应: [ecmsinfo]栏目ID/专题ID,显示条数,标题截取数,是否显示栏目名,操作类型,模板ID,只显示有标题图片[/ecmsinfo]
原帖由 xianga 于 2008-10-21 20:57:47 发表 我是这样写的: [ecmsinfo]"select * from phome_ecms_article where classid in (5,6) order by rand() desc limit 10&...
只显示标题图片,用下面的 [ecmsinfo]"select * from phome_ecms_article where classid in (5,6) and titlepic<>'' order by rand() desc limit 10",10,20,0,24,7,1[/ecmsinfo]