You can improve this, create a different table 'watcher' just look at the record in the watcher and if record change fetch data from real table. Always update the watcher after modify real data table like adding, updating, deleting. You can use time stamp to use in watcher.
It was really great and beautiful, please tell me how can I display a pop-up with the song playing on the screen whenever new information is added to the database?
@@hacodes my codes sometimes it keep repeating it self even though it's already executed as time goes by, is it because the read time get more slower because of the infinite loop?
Loop continue running when connected with client request, as request abort server processing stops for that request. And loop is just continue to check new data, if new data no available, then show nothing but keep running. This method still better that keep requesting from client side continuously.