title: Update a variable without refresh in PHP
body: <p>I need to update a variable named <code>$count</code> (in the below code) automatically. When my database update, <code>$count</code> be update immediately because i need to use value of <code>$count</code> in android app so i can't refresh <code>count.php</code> file every time.</p>
  
  <pre><code>&lt;?php
  $con=mysql_connect("","","");
  mysql_select_db("u607509006_bd1",$con);
  
  $query = "select * from content where status='a'";
  $result = mysql_query($query);
  $count = mysql_num_rows($result);
  echo $count;
  mysql_close($con);
  ?&gt;
  </code></pre>