17 lines
773 B
PHP
Executable File
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);
|
|
}
|
|
?>
|