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

Channel: Technical Tutorial Date: Browse: 572
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, but zblog PHP is evil. The database is queried through linked SQL. I'm not used to it all the time, so I directly use the Z-wiki example to change it to count the number of 24-hour updates to 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