title: Refresh a div's content only if new content is added to the database
body: <p>Is it possible to refresh a divs content only if new content is added to the database?</p>
  
  <p>I'm using this for "recent posts" that appear in the side menu.</p>
  
  <p>Right now the div is set refresh every 10 seconds.</p>
  
  <p>Is it somehow possible to check it a new post was added to the db and then add only that posts data to the div?</p>
  
  <p>I'm using MySql, php and jquery to do all of this.</p>