place this within your php code:
Code:
$res = mysql_query("SELECT count(*) FROM accounts WHERE Online=1;");
$val = mysql_fetch_array($res);
echo "<div style='top: 480; left: 550; position: absolute; z-index: 1; visibility: show;'>Total Characters Online: ".$val[0]."</div>";
Or put this in your html code:
Code:
<?php
$res = mysql_query("SELECT count(*) FROM accounts WHERE Online=1;");
$val = mysql_fetch_array($res);
echo "<div style='top: 480; left: 550; position: absolute; z-index: 1; visibility: show;'>Total Characters Online: ".$val[0]."</div>";
?>