I have a PHP script render a beautiful series of div elements from MySQL info, now I want it to update dynamically and add new divs as new fields in MySQL are added.
window.setInterval(function() {
$.get('tableup.php', function(balance) {
$('.containerDiv').html(balance);
});
}, 60000*0.1);
First question is how do I add the divs to the top of the container div with a fade effect?
Second question is how do I know which divs to return in tableup.php? I already have the dates of every field saved, would passing them to the tableup, parsing them, then running a proper query on the database work? How do I save the date client side? The format is like this 2012-11-17 13:26:31