$tabPaysZone[0], '$theIdPays' => $theIdPays], '');} } if (substr($tabPaysZone[0],0,1)==';') { $test=strlen($tabPaysZone[0]); $test=$test-1; $tabPaysZone[0]=substr($tabPaysZone[0], 1, $test); if (isset($debug[2]) && $debug[2] == '1') { if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['test' => $test, '$tabPaysZone[0]' => $tabPaysZone[0]], '');} } } $tabPaysZone[0]=str_replace( $theIdPays,'',$tabPaysZone[0]); $tabPaysZone[0]=str_replace( ';',';',$tabPaysZone[0]); $reqUpdate="UPDATE `zones` SET paysListe='" .$tabPaysZone[0]. "' 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.reqRemovePays2Zone.php');} } $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. ". (fichier gt.reqUpdatePays2Zone.php) ==> " .$reqUpdate; $admMsgClass='ko'; } ?>