06-07-2008, 12:41 PM
Pourquoi ne tu fais pas comme ça ?
$data = mysql_query("SELECT * FROM batiment");
while($batiment = mysql_fetch_array($data))
{
if($batiment['nom'] = 'machin')
{
...
}
elseif($batiment['nom'] = 'truc')
{
...
}
}
$data = mysql_query("SELECT * FROM batiment");
while($batiment = mysql_fetch_array($data))
{
if($batiment['nom'] = 'machin')
{
...
}
elseif($batiment['nom'] = 'truc')
{
...
}
}