帝国cms随机调用文章 按表随机调用文章: [ecmsinfo]select * from phome_ecms_article order by rand() desc limit 10 ,10,36,0,24,2,0[/ecmsinfo] 随机调用本栏目文章: [ecmsinfo]select * from phome_ecms_article where class

帝国cms随机调用文章



按表随机调用文章:



[ecmsinfo]"select * from phome_ecms_article order by rand() desc limit 10 ",10,36,0,24,2,0[/ecmsinfo]



随机调用本栏目文章:



[ecmsinfo]"select * from phome_ecms_article where classid='$GLOBALS[navclassid]' order by rand() desc limit 10",10,36,0,24,2,0[/ecmsinfo]



其中:article为表名,两个10表示调用的数量为10条,36表示标题取36个字符,第一个0表示不显示栏名名,随机调用的操作类型固定为24,2表示模板ID,第二个0标题图片不存在也调用…………,sql中栏目id要用终极栏目id
转载请说明出处
知优网 » 帝国cms随机调用文章的方法(帝国cms标签调用大全)

发表评论

您需要后才能发表评论