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

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.