16 lines
901 B
PHP
Executable File
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 .= " Mise à jour du pays effectué avec succès !"; $admMsgClass='ok';}
|
|
else {$admMsg .= " Echec de la mise à jour du pays " .$theIdPays; $admMsgClass='ko';}
|
|
}
|
|
?>
|