So I am using this JS code to refresh my website so fetch new data using SQL query:
document.addEventListener("visibilitychange", function() { if (do