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['totalnum']; $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['totalnum']; $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!