27 lines
1.1 KiB
PHP
Executable File
27 lines
1.1 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
$tabIdRefMetaAll=array();
|
|
$tabPageNameMetaAll=array();
|
|
$tabPageIDAll=array();
|
|
$reqSelect="SELECT idRef, pageID, pageName FROM `referencement` WHERE `language`='" .$dbLG. "' ;";
|
|
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['QUERY REF All' => $reqSelect, ' lg' => $lg], 'ref.reqSelectAll.php');}
|
|
$resRef=$idPdo->query($reqSelect);
|
|
if ($resRef) {
|
|
// si la requête a fonctionnée
|
|
$b=0;
|
|
if ($resConn) {
|
|
while($tabRef=$resRef->fetch(PDO::FETCH_ASSOC)) {
|
|
$tabIdRefMetaAll[$b]=$tabRef['idRef'];
|
|
$tabPageIDAll[$b]=$tabRef['pageID'];
|
|
$tabPageNameMetaAll[$b]=$tabRef['pageName'];
|
|
|
|
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['tabIdRefMeta[' => $b, ']=' => $tabIdRefMetaAll[$b]], '');}
|
|
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['tabPageIDAll[' => $b, ']=' => $tabPageIDAll[$b]], '');}
|
|
$b++;
|
|
}
|
|
}
|
|
else {
|
|
$admMsg .= "Il est impossible de retrouver les données (ref.reqSelect.php). Requete =>" .$reqSelect; $admMsgClass='ko';
|
|
}
|
|
}
|
|
?>
|