Smiles-War
58
14
cache/page5.php
<?php
// tableau de chasse
$msg.="<td valign=top><center>Tableau de chasse</center><hr>";
$resultinfos=mysql_query("select count(*)as toto,ki from smi_tombo group by ki order by toto desc limit 0,5");
while(list($i1,$i2 ) = mysql_fetch_array($resultinfos))
{
$aff.=" $i2 $i1 meutres<br>";
}
$msg.="$aff<br>...";
$msg.="<hr>";$aff="";
$resultinfos2=mysql_query("select count(*)as toto,koi from smi_tombo group by koi order by toto desc limit 0,5");
while(list($i1,$i2 ) = mysql_fetch_array($resultinfos2))
{
$aff.=" $i2 $i1 morts<br>";
}
$msg.="$aff<br>...";
$msg.="<hr>";$aff="";
$resultinfos2=mysql_query("select count(*),cote from smi_tombo group by cote limit 0,5");
while(list($i1,$i2 ) = mysql_fetch_array($resultinfos2))
{
if ($i2==2) $i2="tristes"; else $i2="heureux";
$aff.=" $i2 $i1 morts<br>";
}
$tr="classement des tristes :<br>";
$he="classement des heureux :<br>";
$resultinfos2=mysql_query("select count(*)as toto,cote,ki from smi_tombo where cote=1 group by ki order by toto desc limit 0,5");
while(list($i1,$i2,$i3 ) = mysql_fetch_array($resultinfos2))
{
if ($i2==1) $tr.="$i3 : $i1 frags<br>"; else $he.="$i3 : $i1 frags<br>";
}
$resultinfos2=mysql_query("select count(*)as toto,cote,ki from smi_tombo where cote=2 group by ki order by toto desc limit 0,5");
while(list($i1,$i2,$i3 ) = mysql_fetch_array($resultinfos2))
{
if ($i2==1) $tr.="$i3 : $i1 frags<br>"; else $he.="$i3 : $i1 frags<br>";
}
$msg.="$aff<hr>$tr<hr>$he";
?>
2005-01-12 16:58:46