title: How can I refresh a page when a database is updated?
body: <p>How can I detect the latest updates made to a database and silently refresh a page when a change occurs?</p>
  
  <p>Let's say the database access looks like:</p>
  
  <pre><code>$host = "localhost";
  $username = "root";
  $password = "root";
  $db = mysql_connect($host,$username,$password) or die(mysql_error());
  mysql_select_db('ccr') or die(mysql_error());
  </code></pre>
  
  <p>Any ideas and samples would be appreciated. Thank you.</p>