while mysql_fetch_array spis echo div class player div class empty div

1
2
3
4
5
6
7
while($s = mysql_fetch_array($spis)){
echo"<div class='player'><div class='empty'></div>";
$nick = mysql_fetch_array(mysql_query("SELECT * from `user` where id = '".$s['kogo']."' limit 1"));
echo online($nick['id']);
echo '<a href="/user/'.$s['kogo'].'/"> <font color='.$nick['font'].'>'.$nick['nick'].'</font>';
if($nick['prava']>"1"){echo" $status";}echo'</a><span class="float-right"> <a href="?ob='.$s['kogo'].'"><img src="/images/icon/error.png"></a></span></a></br><div class="empty"></div></div><div class="line"></div>';
}