Jump to content

Auto refresh


sandy1028

Recommended Posts

You could use Ajax and check the database every 1 minutes or so

 

here a link which might help

 

http://en.wikipedia.org/wiki/Ajax_(programming)

 

or if you do not want to check if data has change you can refresh the page with a meta tag

 

<meta http-equiv="refresh" content="60" />

 

10 - number of seconds

 

Link to comment
Share on other sites

i would use ajax

 

here is a quick fast tutorial

http://w3schools.com/ajax/default.asp

 

you don't even really need to know javascript,

just take the section of your code that displays the dynamic data and move it into another .php file, then use ajax to grab it, then you can make a button or link that refreshes the data, or a timer, or set a function that checks at intervals for the number of result to have changed from the number display and at that point display a button to refresh or some other notification so the user can be in control of when to refresh,

 

hope that helped.

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.