random post

How to Display Most Popular Posts (Daily)

Submitted by GeePee on
In this project, you will learn how to display most popular posts(daily) and how to display random posts. I have updated my previous project Rating System and View Counter by adding the side bar which displays the Popular Posts(Today) and Random Posts. I also added view_per_day table in MySql for daily views. And as you can see, the posts per page is limited to 5 posts, it's because I put