[Solved] Auto refresh PHP script backend [closed]
To refresh a page without reloading, you have to load the contents of the page through ajax. You could do this as follows: index.php <html> <head> <script type=”text/javascript”> $(document).on(‘ready’, function(){ setInterval(function() { $.ajax({ type: “GET”, url: “ajax_refresh.php”, success: function(result) { $(‘body’).html($result); } }); }, 3000); }); </script> </head> <body> <div class=”header”> Header of website here … Read more