=0) { //Fabrication des trois tableaux $tabOldPers = array(); $tabOldPersMail = array(); $tabNewPers = array(); if (isset( $_GET['dataParticipants'] ) ) $tabNewPers = $_GET['dataParticipants']; for($i=0;$i" . $tabNewPers[$j] . "OU " . $tabOldPersMail[$i] . "==" . $tabNewPers[$j] . "->" ; echo "" . (($tabOldPers[$i] == $tabNewPers[$j]) or ($tabOldPersMail[$i] == $tabNewPers[$j])) . "
"; if (($tabOldPers[$i] == $tabNewPers[$j]) or ($tabOldPersMail[$i] == $tabNewPers[$j])) { $exist = true; print_r($tabNewPers); $tabNewPers[$j]=NULL; echo "
"; print_r($tabNewPers); echo "
"; } } if ($exist) { /* $tabOldPers[$i] = $tabOldPers[(count($tabOldPers)-1)];unset($tabOldPers[(count($tabOldPers)-1)]); $tabOldPersMail[$i] = $tabOldPersMail[(count($tabOldPersMail)-1)];unset($tabOldPersMail[(count($tabOldPersMail)-1)]); } else {i++;} */ $tabOldPers[$i]=NULL; $tabOldPersMail[$i]=NULL; } $i++; } //Tableau permet de savoir qui doit etre supprimer et ajouter echo "--TabOldPers--
"; print_r ($tabOldPers); //for ($i=0;$i<(int)$sizeTabOldPers;$i++) echo "
- " . $tabOldPers[$i]; echo "
--TabNewPers--
"; print_r ($tabNewPers); //for ($i=0;$i<(int)$sizeTabNewPers;$i++) echo " - " . $tabNewPers[$i] ."
"; } /* for ($i=0;$i\n\nType\nLibellé\n\n"; if (mysql_num_rows($result)>0) { for($i=0;$i\n"; if ($row['estPrivee'] == 'oui') echo 'Privée' ; else echo 'Public'; echo "\n"; echo ""; echo $row['libelleL']; echo "\n"; echo "\n\n"; } } echo "\n"; } ?>