php ajax reload webpage every 1 second constant database connection <p>i was wondering how can i reload a .php website containing a table every second with ajax? is it fine if i use javascript, but a quick php script would do just fine, does a loop for reload method work?</p> <p>I tried ajax with javascript but every time i used jquery load method it didnt load anything, and i see all ajax examples only deal with php websites that accept queries with get. I just need my webpage to reload and check for changes in the database as quick as possible. i tried the following code but nothing:</p> <p>$("#newnav").load("polling.php");</p>