Smiles-War
36
14
cache/info.php
<?php
// affiche les smiles qui sont sur une case
$resultfc = mysql_query("SELECT x,y,type FROM smi_perso where 1 and nom like ".$su." ");
$row = mysql_fetch_array($resultfc);
$x = $row["x"]+$xcarte;
$y = $row["y"]+$ycarte;$type1 = $row["type"];
$resultinfos = mysql_query("SELECT x,y,nom,type,id FROM smi_perso where 1 and x like $x and y like $y and nom <> ".$su." ");
$msg.="case x: $x y:$y
";
while(list($x ,$y ,$nom ,$type,$id ) = mysql_fetch_array($resultinfos))
{
$aff.="<img src=img/$type.png><b>$nom</b>";
if ($type1==$type) $aff.="<a href= calculateur.php?nums=$nums&act=trahir&k=$id >trahir</a><br>";
else $aff.="<a href= calculateur.php?nums=$nums&act=frapper&k=$id >frapper</a><br>";
}
$msg.="$aff";
?>
2005-01-12 16:19:39