The following demo example display server timestamp on every 2 second. You can easily edit the code and display any database content.
You have a div that you would like to be up to date on your website without having the page refresh event, this problem can be solved by using the following script. Let’s say that you want to show the total number of rows in a particular table on every 3 second without performing a page refresh event. Then do the following steps
Step 1 – Load ajax Script
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
This script load ajax script remotely.
Read more »