spis mysql_query SELECT kogo from ignor where kto user id ORDER BY id

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
$spis = mysql_query("SELECT kogo from `ignor` where `kto` = '".$user['id']."' ORDER BY id DESC LIMIT $start, $set[p_str]");
if(mysql_num_rows($spis) == 0){
echo '<div class="head"><div class="empty2"></div>Список пуст <div class="empty2"></div></div><div class="line"></div>';
}
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>';
}