A voir également:
- Resultat d'une requête dans tableau à 4 dim
- Tableau word - Guide
- Tableau croisé dynamique - Guide
- Tableau ascii - Guide
- Trier tableau excel - Guide
- Imprimer tableau excel sur une page - Guide
1 réponse
Mikey_UFC
Messages postés
312
Date d'inscription
jeudi 8 mars 2007
Statut
Membre
Dernière intervention
2 août 2010
1
17 févr. 2009 à 17:32
17 févr. 2009 à 17:32
Salut,
$i = 0;
while($rst = mysql_fetch_array($query))
{
$tab[$i]["champ_1"] = $rst["nom_du_champ_1"];
$tab[$i]["champ_2"] = $rst["nom_du_champ_2"];
$tab[$i]["champ_3"] = $rst["nom_du_champ_3"];
$tab[$i]["champ_4"] = $rst["nom_du_champ_4"];
$i++;
}
$i = 0;
while($rst = mysql_fetch_array($query))
{
$tab[$i]["champ_1"] = $rst["nom_du_champ_1"];
$tab[$i]["champ_2"] = $rst["nom_du_champ_2"];
$tab[$i]["champ_3"] = $rst["nom_du_champ_3"];
$tab[$i]["champ_4"] = $rst["nom_du_champ_4"];
$i++;
}
17 févr. 2009 à 17:55
j'essaie ça et te tiens au courant
à +