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?
Page Refresh
Started by dirkfirst, Oct 30 2006 03:41 PM
2 replies to this topic
#1
Posted 30 October 2006 - 03:41 PM
|
|
|
#2
Posted 31 October 2006 - 11:50 AM
sorta counter?
#3
Posted 31 October 2006 - 09:46 PM
dirkfirst said:
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.


Sign In
Create Account


Back to top









