[gull] question mysql

Yann Sagon ypublic at hasa.ch
Sat Apr 15 18:30:10 CEST 2006


Rafael Muñoz Moreno-Davila a écrit :

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Hello,
>
>Alors j'ai fait plusieurs test sur cette fameuse boucle, et je n'arrive
>tjrs pas a obtenir ce que je veux....
>
>Voici ma boucle en question tel qu'elle est maintenant:
>
>while($value = mysql_fetch_array($result)) {
>  echo $value[$i];
>  $i = $i+1;
>}
>
>
>  
>
Encore un détail: je trouve plus explicite de faire comme ça:
|
while ($row = mysql_fetch_assoc($result)) {
   echo $row["note"];
}|




More information about the gull mailing list