优晟SEO

您现在的位置是:首页 > CMS教程 > 帝国cms > 正文

帝国cms

利用gettotal统计查询来调用帝国CMS当前栏目缩略图方法

佚名 2024-08-25帝国cms
利用gettotal统计查询来调用帝国CMS当前栏目缩略图方法当前栏目ID<?=$empire->gettotal("selectclassidastotalfrom{$dbtbpre}enewsclasswhereclassid={$GLOBALS['navclassid']}limit1")?>当前栏目的缩略图:<?……

利用gettotal统计查询来调用帝国CMS当前栏目缩略图方法

利用gettotal统计查询来调用帝国CMS当前栏目缩略图方法当前栏目ID

<?=$empire->gettotal("selectclassidastotalfrom{$dbtbpre}enewsclasswhereclassid={$GLOBALS['navclassid']}limit1")?>

当前栏目的缩略图:

<?=$empire->gettotal("selectclassimgastotalfrom{$dbtbpre}enewsclasswhereclassid={$GLOBALS['navclassid']}limit1")?>

当前父栏目ID

<?=$empire->gettotal("selectclassidastotalfrom{$dbtbpre}enewsclasswhereclassid={$class_r[$navclassid][bclassid]}limit1")?>

当前父栏目的缩略图

<?=$empire->gettotal("selectclassimgastotalfrom{$dbtbpre}enewsclasswhereclassid={$class_r[$navclassid][bclassid]}limit1")?>

注释:调用什么字段就填写什么字段,如栏目ID:classid 、栏目图片:classimg注意:gettotal用count(*)时为统计,用*时为字段;*号也可以是字段如:classid