Home > CMS Tutorial > Empire CMS > body text

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

silencement
Release: 2019-11-28 13:25:54
forward
2541 people have browsed it

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;
?>
Copy after login

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;
?>
Copy after login

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!

Related labels:
source:www.word666.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!