top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How can I write a PHP code to show the number of view for a particular page ?

–1 vote
279 views

I want to display the number of views of my homepage and continuously increase the views whenever a user opens that page. How to achieve this using PHP and MYSQL?

posted Apr 11, 2017 by Snehal Raikar

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Its simple, whenever is your index.php or index.html is accessed increase the viewcount by 1 and update the view count stored in your MYSQL db.

answer Apr 11, 2017 by Salil Agrawal
...