problem refreshing div containing php code using jquery
<p>I have read 3 posts on SO about how to do this, but its not working for some reason.</p>

<p>On the page index.php, i have this script:</p>

<pre><code>&lt;script type="text/javascript"&gt;

function update() {
  $.get("index.php", function(data) {
    $("#uploadcount").html(data);
    window.setTimeout(update, 5000);
  });
}

&lt;/script&gt;
</code></pre>

<p>and then this div, also in index.php</p>

<pre><code>&lt;div id=uploadcount&gt;
&lt;?
$result = mysql_query("SELECT * FROM mydb");
$num_rows = mysql_num_rows($result);
echo "&lt;h1&gt;$num_rows&lt;/h1&gt;&lt;h2&gt;rows&lt;/h2&gt;";
?&gt;
&lt;/div&gt;
</code></pre>

<p>The php is displaying the row count fine, but it wont refresh the number.<br />
(i have latest jquery build included in head of index.php)</p>
