04-15-2005, 04:33 AM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Mar 2005
Posts: 177
Thanks: 0
|
Force Redirect by Database Query
I have this idea that requires a page to be refreshed or a pop-up to occur after a database query. I cannot think of any way possible to do it.
It will require some type of javascript because it requires some client-side programming. I need it some how to load a php page every second and check if the database has been updated. Almost like a chat within PHP without the refresh.
So basically some how to have a javascript loop that will run a PHP file and some how cause a page to do an action (that's the easy part).
I was thinking of making the javascript use an image of some type but use the PHP file as the image's source, but from there I'm stuck.
Anyone have any idea how to do this? It maybe impossible but I just can't think of anything. Please give any feedback!
|
|
|
|