$reqSelect],'menuPanier.php');}
$resConn=$idPdo->query($reqSelect);
if ($resConn) {
$resPanierEnCours=$resConn->fetch(PDO::FETCH_ASSOC);
if ($resPanierEnCours) {
$reqSelect2="SELECT totTtcLigne, idPrd, qte FROM commandelignes WHERE idCde=" .$resPanierEnCours['idCde']. ";";
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= monDebug (2, ['reqSelect2' => $reqSelect2],'menuPanier.php');}
$resConn2=$idPdo->query($reqSelect2);
$nbArtEncours=0;
if ($resConn2) {
while ($lignesTab=$resConn2->fetch(PDO::FETCH_ASSOC)) {
$totTtcLg=$lignesTab['totTtcLigne'];
$idPrdB=$lignesTab['idPrd'];
$qteB=$lignesTab['qte'];
// if ($nbArtEncours>=1) {echo '
';};
$nbArtEncours=$nbArtEncours+$qteB;
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= monDebug (2, ['totTtcLg' => $totTtcLg],'');}
$reqSelect="SELECT nomPrd FROM produitslibelle WHERE idPrd='" .$idPrdB. "' AND idLg='" .$lg. "';";
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= monDebug (2, ['reqSelect' => $reqSelect],'menuPanier.php');}
$resConn3=$idPdo->query($reqSelect);
if ($resConn3) {
$tableauNom=$resConn3->fetch(PDO::FETCH_ASSOC);
if (isset($tableauNom['nomPrd'])) {
$nomPrd=addslashes($tableauNom['nomPrd']) ;
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= monDebug (2, ['nomPrd' => $nomPrd],'');}
}
}
if (isset($_SESSION['lg'])) {$lg=$_SESSION['lg'];} else $lg='FRA';
$totTtcLg=formatNB($totTtcLg,$lg);
if (isset($nomPrd)) $mess .= '';
}
if ($nbArtEncours!=0) {
$mess2 = $cdeMsg[22]. ' ' .$nbArtEncours .$mess;
echo '';
}
// else
// if (isset($debug[2]) && $debug[2] == '1' ) {echo 'nada';}
}
}
}
else {
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= monDebug(1,['Erreur recupération du panier' => 'Oui'],'menuPanier.php');}
}
}
?>