alpha_full/admin/cdes/regles/regle.reqSelect.php
2026-04-06 22:58:51 +02:00

43 lines
1.3 KiB
PHP
Executable File

<?php
$nomFicAppelant = basename(__FILE__);
$tabNum=array();
$tabActiv=array();
$tabPrio=array();
$tabDesc=array();
$tabC1=array();
$tabC2=array();
$tabC3=array();
$reqSelect="SELECT * FROM `rRegles` ;";
$resConn='';
if (isset($debug[2]) && $debug[2] == '1' ) $debugMsg .= monDebug (2, ['reqSelect' => $reqSelect ],'regle.reqSelect');
$resConn=$idPdo->query($reqSelect);
if ($resConn) {
$j=0;
while($tabResult=$resConn->fetch(PDO::FETCH_ASSOC)) {
$tabNum[$j]=$tabResult['num'];
$tabActiv[$j]=$tabResult['activ'];
$tabPrio[$j]=$tabResult['prio'];
$tabDesc[$j]=$tabResult['description'];
$tabC1[$j]=$tabResult['C1'];
$tabC2[$j]=$tabResult['C2'];
$tabC3[$j]=$tabResult['C3'];
$tabAvantageRegle[$j]=$tabResult['avantage'];
$tabTypeA[$j]=$tabResult['typeAvantage'];
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= monDebug (2, [
'tabNum' => $tabNum[$j],
'tabPrio' => $tabPrio[$j],
'tabActiv' => $tabActiv[$j],
'tabDesc' => $tabDesc[$j],
'tabC1' => $tabC1[$j],
'tabC2' => $tabC2[$j],
'tabC3' => $tabC3[$j]
],'');
}
$j++;
}
}
else {
$admMsg .= "<br>Il est impossible de retrouver les données des règles"; $admMsgClass='ko';
}
?>