• 微信号:Zh-y9213
您当前的位置:爱资源分享网 > > 网站源码 > 网站制作

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

栏目:网站制作时间:2021-11-25 14:08阅读数:44人阅读

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

<?=$empire->gettotal("select classid as total from {$dbtbpre}enewsclass where classid={$GLOBALS['navclassid']} limit 1")?>

当前栏目的缩略图:

<?=$empire->gettotal("select classimg as total from {$dbtbpre}enewsclass where classid={$GLOBALS['navclassid']}  limit 1")?>

当前父栏目ID  

<?=$empire->gettotal("select classid as total from {$dbtbpre}enewsclass where classid={$class_r[$navclassid][bclassid]} limit 1")?>

当前父栏目的缩略图

<?=$empire->gettotal("select classimg as total from {$dbtbpre}enewsclass where classid={$class_r[$navclassid][bclassid]} limit 1")?>

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


资源均来自第三方,谨慎下载,前往第三方网站下载

本站所有文章、数据、图片均来自互联网,一切版权均归源网站或源作者所有。

如果侵犯了你的权益请来信告知我们删除。邮箱:737597453@qq.com