par
Ryle » 17 mars 2007, 11:32
Il te suffit de parcourir les résultats retournés par ta requête avec un mysql_fetch_* et d'ajouter un par un les éléments dans ton tableau avec au choix un array_push() ou simplement en affectant l'élément à $Tab_Produit[] :
while ($row = mysql_fetch_assoc(...)) {
$Tab_Produit[] = $row['produit'];
// ou
array_push($Tab_Produit, $row['produit']);
}
Il te suffit de parcourir les résultats retournés par ta requête avec un mysql_fetch_* et d'ajouter un par un les éléments dans ton tableau avec au choix un array_push() ou simplement en affectant l'élément à $Tab_Produit[] :
[php]while ($row = mysql_fetch_assoc(...)) {
$Tab_Produit[] = $row['produit'];
// ou
array_push($Tab_Produit, $row['produit']);
}[/php]