0) { return (mysql_insert_id()); } } function list_modif($idL,$tabParticipant) { $result = mysql_query("SELECT P.idP,P.courrielP FROM Appartenir A, Personne P WHERE P.idP = A.idP AND A.idL=$idL") or die (mysql_error()); if (mysql_num_rows($result)>=0) { //Fabrication des trois tableaux $tabOldPers = array(); $tabOldPersMail = array(); $tabNewPers = array(); if (!empty($tabParticipant)) $tabNewPers = $tabParticipant; for($i=0;$i0) { $row = mysql_fetch_array($result); return ($row['idP']); } else { $result = mysql_query("INSERT INTO Personne (courrielP,loginP) VALUES ('$persMail','$persMail')"); return (mysql_insert_id()); } return (0); } //Fonction qui affiche toutes les liste public ainsi que les liste privée possédées par idP function generate_html_array_list ($idP) { $result = mysql_query("SELECT idL,libelleL,estPrivee,idP_Createur FROM Liste WHERE idP_Createur=$idP OR estPrivee='non' ORDER BY estPrivee,libelleL"); echo "\n\n\n\n\n\n"; if (mysql_num_rows($result)>0) { for($i=0;$i\n\n" ; else echo "\n"; if ($row['estPrivee'] == 'oui') echo "\n\n"; echo "\n"; } } echo "
SupprimerTypeLibellé
"; if ($row['estPrivee'] == 'oui' || $row['idP_Createur']==$idP) echo "\"SupprimerestPrivée" ; else echo "Public"; echo ""; echo ""; echo $row['libelleL']; echo "
\n"; } function traiter_formulaire_commentaire() { echo $_SESSION['session_idP']; } ?>