Jump to content

help with this counter


svgmx5

Recommended Posts

I have a counter that updates the database automatically with out refreshing the page. However i was wondering if someone can give me some pointers on how i can keep it updating the database even after someone exits the page.

 

Currently it updates the database every 2 seconds by increasing the number by 1..however i want to be able to do this even if the page i not loaded

is there any way i can do this?

Link to comment
https://forums.phpfreaks.com/topic/214692-help-with-this-counter/
Share on other sites

sorry for not being more clear...

 

Here's what i got...

 

I currently have a page with a counter that uses ajax and php to update a database every 2 seconds...it like a click counter expect it does not require anything to be clicked to update.

 

What i've been trying to figure out is how i keep updating the database even after the user has left the page...so if nobody is looking at the site then i still want the database to keep updating.

 

right now it just updates when the webpage is open, as soon as i close it it stops updating

 

does anyone know if this is possible?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.