I am currently using this code for updating ever 2 seconds, how ever I don't know how I could make it update via change or update in the database table.
<script>
function loadlink(){
$('#links').load('elements/feed-load.php',function () {
$(this).unwrap();
});
}
loadlink(); // This will run on page load
setInterval(function(){
loadlink() // this will run after every 5 seconds
},2000);
</script>
<div id="links">
</div>