03-10-2006, 05:50 PM
Code PHP :
<?php
$coordVide = mysql_query("SELECT posx, posy FROM membres");
while ($vide = mysql_fetch_array($coordVide))
{
$x = mt_rand(1,500);
$y = mt_rand(1,500); //suivant la taille de ta carte en carré
if ($x != $vide['x'] && $y != $vide['y'])
{
mysql_query(INSERT ......
}
}