Home  >  Article  >  CMS Tutorial  >  Classic techniques: How to count the number of messages in Empire CMS

Classic techniques: How to count the number of messages in Empire CMS

silencement
silencementforward
2019-11-28 13:25:542515browse

Classic techniques: How to count the number of messages in Empire CMS

The example in this article describes the method of counting the number of messages in Imperial CMS. Share it with everyone for your reference. The specific implementation method is as follows:

The code for the number of messages under the specified model of Empire CMS is as follows:

The code is as follows:

<?php
$totalnum=(int)$_GET[&#39;totalnum&#39;];
$totalquery="select count(*) as total from ***_enewsgbook where bid=1 and checked=0";
$num=$empire->gettotal($totalquery);//取得总条数
echo $num;
?>

It is recommended to study "Empire cms tutorial

Empire CMS does not specify the number of model messages. The code is as follows:

The code is as follows:

<?php
$totalnum=(int)$_GET[&#39;totalnum&#39;];
$totalquery="select count(*) as total from ***_enewsgbook";
$num=$empire->gettotal($totalquery);//取得总条数
echo $num;
?>

I hope this article will be helpful to everyone’s Imperial CMS website building. helped.

The above is the detailed content of Classic techniques: How to count the number of messages in Empire CMS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:www.word666.com. If there is any infringement, please contact admin@php.cn delete