Nadeem Sial
Nadeem Sial

Reputation: 23

How to count views for each post by using php script?

I'm going to create a dynamic website, I want display multiple posts at a page & need to count view for each post Separately. Can you help me?

Upvotes: 1

Views: 556

Answers (1)

Dinh Phong
Dinh Phong

Reputation: 596

Simple way:

  1. Create a views column on your posts table (database)
  2. After have page view increase view then update again to posts table

Btw, you should write code and show. At least, you should show the database

Upvotes: 1

Related Questions