Slette gammelt buffer output
Jeg har en lille chat og nå man rykker med sin figur skal det gamle ryk væk. hvordan gør jeg ???se eks. www.netverden.dk/NV2/3dchat/frames.php
min kode ser sådan ud:
<?
while(1)
{
?>
<?
$result1 = mysql_query(\"SELECT * FROM 3dchat where rum=\'$rum\'\");
while($row1 = mysql_fetch_array($result1)) {
?>
<?
if($row5[figur] == \"\") {
?>
<div id=\"figur\" style=\"position:absolute; width:68px; height:62px; left: <? echo $row1[x]; ?>px; top: <? echo $row1[y]; ?>px\">
<a href=\"#\" onClick=\"return overlib(\'<img src=gui/<? echo $row5[køn]; ?>.gif> <? echo $row1[brugernavn]; ?><br><b><? echo $row6; ?></b> ting<br><b><? echo $tid; ?></b> timer<br>Status:<br><? echo $row5[status]; ?>\', CAPTION, \'Info\')\" onmouseout=\"nd();\"><p style=\"word-spacing: -1; line-height: 100%; margin: 0\"><img src=\"images/figur.gif\" border=\"0\"></a><br>
<a href=\"uinfo.php?id=<? echo $row5[id]; ?>\" target=\"news\"><center><? echo $row1[brugernavn]; ?></a></p></div>
<?
} else {
?>
<div id=\"figur\" style=\"position:absolute; width:68px; height:62px; left: <? echo $row1[x]; ?>px; top: <? echo $row1[y]; ?>px\">
<a href=\"#\" onClick=\"return overlib(\'<img src=gui/<? echo $row5[køn]; ?>.gif> <? echo $row1[brugernavn]; ?><br><b><? echo $row6; ?></b> ting<br><b><? echo $tid; ?></b> timer<br>Status:<br><? echo $row5[status]; ?>\', CAPTION, \'Info\')\" onmouseout=\"nd();\"><p style=\"word-spacing: -1; line-height: 100%; margin: 0\"><img src=\"images/<? echo $row5[figur]; ?>.gif\" border=\"0\"></a><a href=\"uinfo.php?id=<? echo $row5[id]; ?>\" target=\"news\"><center><? echo $row1[brugernavn]; ?></a></p></div>
<?
}
?>
<?
}
?>
<?
flush();
sleep(2);
}
?>
