Thread: Page Refresh
View Single Post
  #3 (permalink)  
Old 11-01-2006, 12:46 AM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,569
Last Blog:
Tidy up your HTML
Credits: 0
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default

Quote:
Originally Posted by dirkfirst View Post
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.
Reply With Quote