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.
Anyone have any idea how to do this? It maybe impossible but I just can't think of anything. Please give any feedback!
I didnt understand all. But still im giving my idea.
Use http refresh tags in your HTML which is generated by PHP Script.
HTML refresh tags can refresh the pages every few seconds, ands thereby loading the script again and again.
it should be able to do but will take a while and will be complicated
1. build a script to get the last modified date of a table and return it in the source
4. if the values match do nothing, if they dont match go else where
it would be alot easier if you place the values in a phpsession and refresh the page every so often
The refresh is no problem if it's required, I was just trying to prevent it. What I had in mind was something along the lines as setting an image's source which would be 1px by 1px somewhere on the page so it would be hidden, but the source would be changed within a while loop or for loop. Once the image's source matches something that is returned by the php's script which is actually what the image's source is then it would force a pop-up window to open.
Very hard to explain. Again, no idea if it's possible and if it is, I have no idea how to go about it. :(