Sinon la,j'essayais la méthode de cacher les "radio" non nécessaire :
Code PHP :
<?php
$resultat = mysql_query("SELECT * FROM profil_joueurs WHERE (coord_x BETWEEN '$coord_x -1' AND '$coord_x +1') AND (coord_y BETWEEN '$coord_y -1' AND '$coord_y +1') ORDER BY coord_y DESC, coord_x");
$persos = mysql_fetch_array($resultat);
<td align=\"center\"><input type=\"".test_place($persos, -1, +1, $coord_x, $coord_y)."\" name=\"bouger\" value=\"N_O\" /></td>
La fonction :
Code PHP :
<?php
function test_place($persos, $x_add, $y_add, $x, $y)
{
if ( is_array($persos) && ($persos['coord_x']+$x_add == $x) && ($persos['coord_y']+$y_add == $y))
return hidden;
else
return radio;
}