Quote:
Originally Posted by dirkfirst
Is there a way to increase a variable by one or any other number every time the page refreshes. How would PHP even know that the page was being refreshed?
|
If you use php in conjunction with mysql it can easily be done. Just create a value in a database and start it at zero. Each time the page loads include a sql query that gets the current value in the database and then adds one to it and then replaces the old value in the database with the new one.