Hola amigos bueno es mi primer post aquí espero que me puedan ayudar tengo una pequeña web sobre un juego y bueno pues tengo un Top - 10 user pero ahora quiero poner un Top user VIP pero la cuestión es que los que son vip no aparezcan en el Top 10 Normal y viceversa aqui les dejo el codigo de Top 10 que ise para los top user normal.
Código:
<?PHP
$limit1= isset($_GET['next']) ? clean_variable_fapli($_GET['next'])-1 : 0;
$limit2= 10;
$nickname=clean_variable($_POST['name']);
if($nickname==''){
$qmnews = @mysql_query("SELECT * FROM game where game.NoRankUpdate='0' order by game.TotalRank ASC LIMIT $limit1,$limit2");
}else{
$qmnews = @mysql_query("SELECT * FROM game where game.NickName like '%$nickname%' and game.NoRankUpdate='0' order by game.TotalRank ASC LIMIT $limit1,$limit2");
}
while ($r = mysql_fetch_array($qmnews)){
/*if($r['TotalRank']>=$limit1 && $r['TotalRank']<$limit2 && $r['NoRankUpdate']==0){*/
?>
<tr>
<td width="32" height="18" align="center"><div align="center" class="Estilo3">
<?=$r['TotalRank']?>
.</div></td>
<td width="20" align="center" alt="'.getcountry($r['Country']).'" title="<?=$r['NickName']?> es el Numero <?=$r['CountryRank']?> en el Pais de <?=getcountry($r['Country'])?>"><span class="Estilo6">
<?=getgraderank($r['TotalGrade']);?>
</span></td>
<td width="80" align="center"><span class="<?=getauth($r['Authority'])?> Estilo9"><strong>
<?=$r['NickName']?>
</strong></span></td>
<td width="63" align="center"><span class="Estilo9"><strong>
<?=number_format($r['TotalScore']);?>
</strong></span></td>
<td width="23"><span class="Estilo4"><strong>
<?=getpaisimg($r['Country'])?>
</strong></span></td>
</tr>
<?
/* }*/
}
?>
Un ejemplo que pensé podría ser todo los usuarios q tenga en la tabla de mi db "Autoridad = 1" se muestren en el top normal y los que tengan "Autoridad = 2" se muestren en el Top Vip si esta bien este ejemplo me podrían ayudar a estructurarlo no tengo mucho conocimiento sobre php.