How to obtain the number of articles published by zblog website in the past 24 hours

Channel: Technical Tutorial Date: Browse: 311
On the zblog forum, I saw a user asking how to count the number of updates to zblog in 24 hours. If there is no misunderstanding, the user should want to get the number of articles published by zblog website in 24 hours. In fact, it can be achieved through a few basic SQL queries. However, zblog php is evil. I have never been used to querying databases through chained SQL, so I directly changed the Z-wiki example to calculate the 24-hour update quantity of zblog. Note: The following code is only applicable to zblog php version 1.5. x. 1. Add the following code to the theme's include.php file: function