03-12-2006, 06:56 PM
Code PHP :
<?php
$sq2 = 'SELECT avatar_joueur,posx, posy FROM membre WHERE posx between '.$x_debut.' and '.$x_fin.' AND posy between '.$y_debut.' and '.$y_fin.' ORDER BY posx DESC,posy DESC';
$req = mysql_query($sq2) or die(mysql_error());
while ($data = mysql_fetch_array($req)) {
if (empty($TabMAP[$data['posx']][$data['posy']]))
$TabMAP[$data['posx']][$data['posy']] = $data['avatar_joueur'];
}
mysql_free_result($req);
Code PHP :
<?php
echo '<td><img src='.$avatar_joueur.'.png></td>';//on affiche l'avatar de votre perso