alpha_full/admin/options/moyensL/grilleTarifaire/gt.reqUpdatePays2Zone.php
2026-04-06 22:58:51 +02:00

16 lines
901 B
PHP
Executable File

<?php
$nomFicAppelant = basename(__FILE__);
if (!empty($theIdPays)) {
// mise en tableau de theIdPays avec le idPays selectionné en plus
if (!empty($tabPaysZone[0])) $theIdPays=$tabPaysZone[0]. ';' .$theIdPays;
$reqUpdate="UPDATE `zones` SET paysListe='" .$theIdPays. "' WHERE idMl='" .$idMl. "' and idZone='" .$theIdZone. "' ;";
if (isset($debug[2]) && $debug[2] == '1') {
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['reqUpdate' => $reqUpdate], 'gt.reqUpdatePays2Zone.php');}
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['theIdPays' => $theIdPays], '');}
}
$resConn='';
$resConn=$idPdo->query($reqUpdate);
if ($resConn) {$admMsg .= "&#160;Mise à jour du pays effectué avec succès !"; $admMsgClass='ok';}
else {$admMsg .= "&#160;Echec de la mise à jour du pays " .$theIdPays; $admMsgClass='ko';}
}
?>