1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
<?php
$ResRayon = odbc_exec($connexion,$ReqRayon);
while ( $RR = odbc_fetch_object($ResRayon) ){
?>
zlien[<?php echo $RR->IDRayon?>] = new Array;
<?php
$ReqCat = "select * from categories where IDRayon='".$RR->IDrayon."' order by LibelleCategorie";
$ResCat = odbc_exec($connexion,$ReqCat);
$i = 0;
if (odbc_num_rows($Rescat)>0) {
while( $RC = odbc_fetch_object($ResCat) ){
?>
zlien[<?php echo $RC->IDRayon?>][<?php echo $i++?>] = '<A HREF="../../achat/index.php?catid=<?php echo $RC->ID?>" CLASS=ejsmenu><?php echo addslashes($RC->LibelleCategorie)?></A>';
<?php
}
} else {
?>
zlien[<?php echo $RR->IDRayon?>][0] = '<A HREF="#" CLASS=ejsmenu>Rayon Vide</A>';
<?php
}
}
?> |
Partager