35 lines
1.6 KiB
PHP
Executable File
35 lines
1.6 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
$tabResult=array();
|
|
|
|
// ---------------------------------------------------
|
|
// recherche des images categories ( ancien familles ) a afficher
|
|
// ---------------------------------------------------
|
|
$reqSelect="SELECT * from familles where status!=0;";
|
|
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['reqSelect' => $reqSelect], 'accueil-M3.reqSelect.php');}
|
|
// echo 'reqSelect ACCC ' .$reqSelect;
|
|
$resConn='';
|
|
$resConn=$idPdo->query($reqSelect);
|
|
$i=0;
|
|
while ($tabResult = $resConn->fetch(PDO::FETCH_ASSOC)) {
|
|
$idFamTab[$i]=$tabResult['idFam'];
|
|
$grandeImageTab[$i]=$tabResult['grandeImage'];
|
|
$statusFamTab[$i]=$tabResult['status'];
|
|
// if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= '<br>imgFamTab ' .$i. '= ' .$imgFamTab[$i];}
|
|
// echo '<br> grandeImageTab '. $grandeImageTab[$i];
|
|
// echo ' statusFamTab '. $statusFamTab[$i];
|
|
|
|
// ---------------------------------------------------
|
|
// recherche des libellés familles
|
|
// ---------------------------------------------------
|
|
$reqSelect="SELECT * from familleslibelle WHERE idFam=" .$idFamTab[$i]. " and idLg='" .$lg. "';";
|
|
$resConn2=$idPdo->query($reqSelect);
|
|
if (isset($debug[1]) && $debug[1] == '1') { $debugMsg .= monDebug(1, ['reqSelect' => $reqSelect], '');}
|
|
while ($resTab2=$resConn2->fetch(PDO::FETCH_ASSOC)) {
|
|
$libFamTab[$i]=$resTab2['libelle'];
|
|
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['libFamTab' => $i, '=' => $libFamTab[$i]], '');}
|
|
// echo '<br> FAM'. $libFamTab[$i];
|
|
}
|
|
$i++;
|
|
}
|
|
?>
|