$categories=array (
"Accessoires","A",
"Salons","C",
"BZ et Clic Clac","D",
"Lits", "L",
"Literie", "M",
"Meubles", "T",
"Produit", "O");
echo("
");
for($i = 0; $i < 14; $i+=2)
{
echo("" . $categories[$i] . "
");
}
echo("Haut
");
for($i = 0; $i < 14 ; $i+=2)
{
$result = mysql_query("select * from catalogue where categorie='" . $categories[$i + 1] . "' order by catId asc", $db) or die (mysql_error($$
echo("" . $categories[$i] ."
");
if (mysql_num_rows($result) != 0)
{
// but it never get here, it goes to the else down of the file.