alpha_full/pages/panier/_formOptions/reqOpt/reqSelectLibPrd.php
2026-04-06 22:58:51 +02:00

17 lines
773 B
PHP
Executable File

<?php
$nomFicAppelant = basename(__FILE__);
if (!empty($idPrd)) {
$reqSelect="SELECT nomPrd FROM `produitslibelle` WHERE idPrd=" .$idPrd. " and idLg='" .$lg. "' ; ";
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .=monDebug(2,[ 'reqSelect' => $reqSelect ],'reqSelectLibPrd.php'); }
$resConn=$idPdo->query($reqSelect);
$tabResult=$resConn->fetch(PDO::FETCH_ASSOC);
$nomProduit=$tabResult['nomPrd'];
$reqSelect="SELECT prixTTC FROM `produits` WHERE idPrd=" .$idPrd. " ; ";
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .=monDebug(2,[ 'reqSelect' => $reqSelect ],''); }
$resConn=$idPdo->query($reqSelect);
$tabResult=$resConn->fetch(PDO::FETCH_ASSOC);
$prixProduit=$tabResult['prixTTC'];
$prixProduit=formatNB($prixProduit,$lg);
}
?>