title: How do I do realtime database polling in MySQL/PHP?
body: <p>I have a Ruby script which is constantly updating a MySQL database. I want to show the "<code>mysql_num_rows()</code>" in realtime. So as an entry is entered into the database by the Ruby script I want the PHP script to update its mysql_num_row() count in realtime.</p>
  
  <p>I tried using <code>&lt;meta http-equiv="refresh" content="5"&gt;</code>, but I don't think this is the best solution.</p>
  
  <p>Does any one have a better solution?</p>