makka Posted April 4, 2007 Share Posted April 4, 2007 hay i want to know how to make a page view counter so lets say i have it on my home page and some one goes there it will then add one to the page views and echo it out so lets say i went there that would make it 1 so it would say page views = 1 then i go to bed and over the night 5 people have been on my home page that would make it 6 so it would say page views = 6 then i go on it would ad another one oh so it would say page views = 7 but i want it so if the server goes down it wont be lost Link to comment https://forums.phpfreaks.com/topic/45625-helppage-views/ Share on other sites More sharing options...
razta Posted April 4, 2007 Share Posted April 4, 2007 Theres a tutorial on this in the tutorial section. It's done by using sessions. Link to comment https://forums.phpfreaks.com/topic/45625-helppage-views/#findComment-221626 Share on other sites More sharing options...
chronister Posted April 4, 2007 Share Posted April 4, 2007 For a running counter like that, you will need to use a database. Sessions are a per connection basis, and would reset for each person. you will simply need to create a database table and store your numbers there Link to comment https://forums.phpfreaks.com/topic/45625-helppage-views/#findComment-221639 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.