<?php
session_start(); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache');  $listeParticipant = $_GET['listeParticipant']; $codeTheme = $_GET['codeTheme']; $modif = $_GET['modif'];  include("fotoweb46.php");  $queryDelete = "DELETE FROM relationthemepersonne WHERE `codeTheme`='$codeTheme'"; $resultDelete = mysql_query ($queryDelete) or die ("La requête de suppression des associations participant/theme a échoué.");  $tabParticipants = explode("|", $listeParticipant);  array_pop ($tabParticipants); while (count($tabParticipants) != 0) { $nomParticipant = array_pop($tabParticipants); $niveau = substr($nomParticipant,0,2); $nomParticipant = substr($nomParticipant,2,strlen($nomParticipant)); switch ($niveau) { case "VI": $niveau = "2"; break; case "PR": $niveau = "1"; break; default : $niveau = "0"; }  $queryInsert = "INSERT INTO relationthemepersonne (`nomPers`,`codeTheme`,`niveau`) VALUES ('$nomParticipant','$codeTheme','$niveau')"; $resultInsert = mysql_query ($queryInsert) or die ("La requête d insertion des associations participant/theme a échoué :".$queryInsert); }  echo " alert('Enregistrement des habilitations : OK'); ";  include("fotoweb29.php");  ?> 