title: Auto refresh a php variable in html page
body: <p>I have an HTML page with a div containing the value of a php variable, which is from a mysql query. I want the div to auto-refresh in order to see any new data from an SQL query. I searched a week for the right code, but nothing... . The div code is the following:</p>
  
  <pre><code>&lt;div id="last10"&gt;   
      &lt;table width="838" cellpadding="1" cellspacing="1" class="categorie1"&gt; 
          &lt;tr style='font: bold 12px verdana;'&gt; 
              &lt;td width="149" align="center"&gt;Browser&lt;/td&gt;
              &lt;td width="99" align="center"&gt;OS&lt;/td&gt;
              &lt;td width="248" align="center"&gt;Date&lt;/td&gt;
              &lt;td width="103" align="center"&gt;IP&lt;/td&gt;
              &lt;td width="108" align="center"&gt;Country&lt;/td&gt;
              &lt;td width="110" align="center"&gt;Referrer&lt;/td&gt; 
          &lt;/tr&gt;
          {$recent_visits}        
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>