function simulation()
{
$req_select = mysql_query("SELECT id, type FROM attaques ORDER BY h_arrivee") or die("l.33 - req_simu<br>".mysql_error());
while (list($id, $type) = mysql_fetch_row($req_select));
{
echo("$id, $type");
if($type == 1)
{
include("simulation_type1.php");
$req_del = mysql_query("DELETE FROM attaques WHERE id = ".$id."") or die("l.41 - req_del<br>".mysql_error());
simulation();
}
//if($type == 2) include("simulation_type2.php");
if($type == 3)
{
include("simulation_type3.php");
$req_del = mysql_query("DELETE FROM attaques WHERE id = ".$id."") or die("l.48 - req_del<br>".mysql_error());
simulation();
}
}
}
simulation();
le echo retourne juste une virgule ...alors que lorsque j'execute ma requete directement en mysql ...

pouriez vous m'aider