id_ile; $lib_ile = $resLoadCat2->lib_ile; } } $strTabArt[1]=""; $strTabArt[2]=""; $strTabArt[3]=""; $strTabArt[4]=""; $strTabArt[5]=""; for ( $i= 0 ; $i<5 ; $i++ ) { //echo $i; $strLoadArt = "SELECT * FROM revendeur WHERE ileRev = '".$i."' order by villeRev,adRev ASC;"; $reqLoadArt = mysql_query($strLoadArt); if (mysql_num_rows($reqLoadArt) != 0) { $strTabArt[$i].= ""; $strTabArt[$i] .="\n"; while ($resLoadArt = mysql_fetch_object($reqLoadArt)) { $typeGaAll = $resLoadArt->ileRev; $strLoadCat2 = "select * from ile where id_ile = '$typeGaAll';"; $reqLoadCat2 = mysql_query($strLoadCat2); if (mysql_num_rows($reqLoadCat2) != 0) { while ($resLoadCat2 = mysql_fetch_object($reqLoadCat2)) { $lib_ile = $resLoadCat2->lib_ile; if ($lib_ile == $lib_ile2){ $lib_ile3 = "";} else{ $lib_ile3 = ""; } $lib_ile2 = $resLoadCat2->lib_ile; } } $strTabArt[$i] .= $lib_ile3; $telRev = stripslashes($resLoadArt->telRev); if ($telRev != '') { $telRev = " ".$telRev; } $strTabArt[$i] .= "\n"; $strTabArt[$i] .= "\n"; } $strTabArt[$i] .= "
".stripslashes($lib_ile)."
" . stripslashes($resLoadArt->villeRev) . "" . stripslashes($resLoadArt->adRev) . "
" .$telRev. "\n"; $webRev = stripslashes($resLoadArt->webRev); if ( $webRev != '' ) { $strTabArt[$i] .= "
webRev) . "\" title=\"".$webRev."\" target=\"_blank\">".$webRev."";} $strTabArt[$i] .= "
"; } } /* echo $strTabArt[1]."
"; echo $strTabArt[2]."
"; echo $strTabArt[3]."
"; echo $strTabArt[4]."
"; echo $strTabArt[5]."
"; */ ?> Revendeurs Guadeloupe Martinique St-Martin St-Barthelemy BLABLA Mobile
Revendeurs BLABLA BlaBla Mobile