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
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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.