$refresh], '16-init.thmParam.php'); } if (empty($_SESSION['thmParamDesc']) || empty($_SESSION['thmParamId']) || ($refresh=='Oui')) { $reqSelect="SELECT * FROM `thmParam` WHERE idTheme=" .$_SESSION['idTheme']. " order by `desc`;"; if (isset($debug[9]) && $debug[9] == '1' ) { $debugMsg .= monDebug (2, ['reqSelect' => $reqSelect], '');} $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],'');} } } else { if (isset($debug[9]) && $debug[9] == '1' ) { $debugMsg .= monDebug (1,['session déjà chargée' => 'Oui'],'');} $thmParamId=$_SESSION['thmParamId']; $thmParamVal=$_SESSION['thmParamVal']; $thmParamDesc=$_SESSION['thmParamDesc']; } include ("16-thmParamConst.php"); ?>