changing title in php on refresh using cookies
<pre><code>while ($row = mysql_fetch_row($result))
    {
        echo "&lt;tr&gt;";
        echo ("&lt;p&gt;&lt;td&gt;$row[2]&lt;/td&gt;&lt;td&gt;$row[0]&lt;/td&gt;&lt;td&gt;$row[1]&lt;/td&gt;&lt;td&gt;&lt;i&gt;$row[3]&lt;/i&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=\"delete.php?time=$row[2]&amp;user=$row[0]&amp;pass=$row[1]\"&gt;&lt;center&gt;[x]&lt;/center&gt;&lt;/a&gt;&lt;/td&gt;&lt;/p&gt;");
        echo "&lt;/tr&gt;";
        $x++;
    }
    echo "&lt;/table&gt;";
}
else
{
    echo "*No Accounts*";
}

if (isset($_COOKIE['amountx'])) {
        if ($_COOKIE['amountx'] &lt; $x) {
            $x = $x - $_COOKIE['amountx'];
            echo "&lt;title&gt;'New Logs - ($x)'&lt;/title&gt;";
        }
        else if ($_COOKIE['amountx'] == $x) {
            echo "&lt;title&gt;'Logs (0)'&lt;/title&gt;";
        }
        else {
        setcookie("amountx", $x, time() + 60 * 60 * 24 * 30);
        }
    }
    else {
        setcookie("amountx", $x, time() + 60 * 60 * 24 * 30);
    }
</code></pre>

<p>The title never updates but the cookie is saved.  This was in the while loop but I took it out and it still saves the cookie amount. But I can't get it to display the new title even after refreshing every 5 seconds via meta-refresh. How can I update the title?</p>
