29 lines
1.2 KiB
PHP
Executable File
29 lines
1.2 KiB
PHP
Executable File
<?php
|
|
if (empty($_SESSION['thmParamDesc']) || empty($_SESSION['thmParamId']) || ($refresh=='Oui')) {
|
|
$reqSelect="SELECT * FROM `thmParam` WHERE idTheme=" .$_SESSION['idTheme']. " order by `desc`;";
|
|
|
|
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= monDebug (2, ['reqSelect' => $reqSelect], 'requete_themeParam_carroussel.php');}
|
|
$resConn=$idPdo->query($reqSelect);
|
|
if ($resConn) {
|
|
$tabResult='';
|
|
$i=0;
|
|
while ($tabResult = $resConn->fetch(PDO::FETCH_ASSOC)) {
|
|
$thmParamId[$i]=$tabResult['id'];
|
|
$thmParamVal[$i]=$tabResult['val'];
|
|
$thmParamDesc[$i]=$tabResult['desc'];
|
|
if (isset($debug[10]) && $debug[10] == '1' ) { $debugMsg .= monDebug(1, ['thmParamVal-' .$i => $thmParamId[$i], 'thmParamDesc-' .$i => $thmParamVal[$i] ], '');}
|
|
$i++;
|
|
}
|
|
$_SESSION['thmParamId']= $thmParamId;
|
|
$_SESSION['thmParamVal']= $thmParamVal;
|
|
$_SESSION['thmParamDesc']= $thmParamDesc;
|
|
// if (isset($debug[9]) && $debug[9] == '1' ) { $debugMsg .= monDebug (1,['session re-chargée' => 'Oui'],'');}
|
|
$tabResult='';
|
|
}
|
|
else {
|
|
echo " Impossible de récupérer les données de la table";
|
|
if (isset($debug[9]) && $debug[9] == '1' ) { $debugMsg .= monDebug (1,['reqSelect' => $reqSelect],'');}
|
|
}
|
|
}
|
|
?>
|