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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.