Like numerous other developers I have a web site which is database driven.
My question is, when an update is made to the database/web site, I would like the pages to be refreshed. Not just the pages on my screen, but the pages of those users who also happen to be "on" when the database is updated. I would like their browser to refresh their information as well. How can I do this?
This is what I tried with two computers next to each other computer 1 and computer 2 respectively:
I am using a session variable $x to refresh the screen when the db is updated. In my header file an if statement checks to see if that session variable is set. If it is, then it refreshes the screen after $x seconds (where $x is the session variable). The screen updated on the computer I was using, but the other computer's screen did not update. Am I overlooking something?
I have searched the entries in this form, but at first glance, could not find an answer to my question. Perhaps I overlooked something. Can someone help me or point me in the right direction?