Jump to content

Refresh automaticlly when new results come in.


Muggin

Recommended Posts

I have a simple page that displays the content of a database but I need it to refresh automatically when new entries are submitted. I have tried searching for different tutorials, all of which either do not explain it well enough or it plain do not work, with comments to back it up. I would like to now your take on how to go about doing something like this.

~Thanks in advance
Link to comment
Share on other sites

No, I think you are misunderstanding me. I have a form that submits peoples user names and password to a database. I also have a page that displays these submissions. I need to find a way to have the results page automatically refresh when the database is updated. Not refresh at a given time.

~Thanks 
Link to comment
Share on other sites

PHP is server side.  Once it loads the page, PHP really has no way to refresh the browser page.  I don't know AJAX, but I believe you can use it to call server side functions without refreshing the browser window.  You might be able to use this to run a check every so often to see if the db has been updated and then refresh the browser window, or at least the relevant portions of the browser window.
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.