alpha_full/admin/options/moyensP/mp.reqSelect.conf.php
2026-04-06 22:58:51 +02:00

49 lines
1.7 KiB
PHP
Executable File

<?php
$nomFicAppelant = basename(__FILE__);
$resConn='';
$tabResult=array();
// -----------------------------------------------------
// Select
// -----------------------------------------------------
if (isset($theIdPaie) && !empty($theIdPaie)) {
$reqSelect="SELECT * FROM `modepaie` WHERE idModePaie =" .$theIdPaie. ";" ;
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['reqSelect MP liste' => $reqSelect], 'mp.reqSelect.conf.php');}
$resConn=$idPdo->query($reqSelect);
if ($resConn) {
// si la requête a fonctionnée
$b=0;
if ($resConn->rowCount()>0) {
$tabResult=$resConn->fetch(PDO::FETCH_ASSOC);
$theDesc=$tabResult['description'];
$theTypeCompte=$tabResult['typeCompte'];
$theEnv=$tabResult['isTest'];
$theLibIdCompte=$tabResult['libelleIdCompte'];
$theIdCompte=$tabResult['idCompte'];
$theLibClePriveTest=$tabResult['LibelleClePriveTest'];
$thePrivateKeyTest=$tabResult['PrivateKeyTest'];
$theLibelleClePubTest=$tabResult['LibelleClePubTest'];
$thePublicKeyTest=$tabResult['PublicKeyTest'];
$theLibelleClePriveProd=$tabResult['LibelleClePriveProd'];
$thePrivateKeyProd=$tabResult['PrivateKeyProd'];
$theLibelleClePublicProd=$tabResult['LibelleClePublicProd'];
$thePublicKeyProd=$tabResult['PublicKeyProd'];
$theApiTest=$tabResult['apiURLTest'];
$theApiProd=$tabResult['apiURLProd'];
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['theDesc' => $theDesc ], '');}
}
}
else
{ $admMsg .= "Il est impossible de retrouver les données"; $admMsgClass='ko';}
}
else
{ $admMsg .= "Il est impossible de retrouver les données, moyen de paiement vide."; $admMsgClass='ko';}
?>