X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=php%2Fpages%2Finscrits.php;h=a28efdbd2922846ab60e37069d45f4ecb0e9e677;hb=23bc2016d5fbd8f7daa9b7ba5c7fa862709ff7a7;hp=b5df9b21594c39db20d7c65f9a026c2d8a64723b;hpb=557974b66bba86b74181d2b18569ee897eac60a8;p=cl7.git diff --git a/php/pages/inscrits.php b/php/pages/inscrits.php index b5df9b2..a28efdb 100644 --- a/php/pages/inscrits.php +++ b/php/pages/inscrits.php @@ -1,21 +1,21 @@ pseudo nom prénom'; $nb_periode = 0; -while($periode = mysql_fetch_object($periodes)) +while($periode = pg_fetch_object($periodes)) { $debut_table .= ''.$periode->nom_abrege.''; $nb_periode++; @@ -23,10 +23,10 @@ while($periode = mysql_fetch_object($periodes)) $debut_table .= 'remarques '; -$clan_courant = null; +$clan_courant = "PHP c'est du CACA"; echo ''; -while($participant = mysql_fetch_object($participants)) +while($participant = pg_fetch_object($participants)) { if ($clan_courant !== $participant->clan_nom) { @@ -34,18 +34,18 @@ while($participant = mysql_fetch_object($participants)) $clan_courant = $participant->clan_nom; } - $participations = mysql_query(" + $participations = pg_query_params(" SELECT periodes.nom, participations.participant_id FROM periodes - LEFT JOIN participations ON periodes.id = participations.periode_id AND participations.participant_id = ".$participant->id." + LEFT JOIN participations ON periodes.id = participations.periode_id AND participations.participant_id = $1 ORDER BY id - "); + ", array($participant->id)); echo ''; echo ''; echo ''; echo ''; - while ($participation = mysql_fetch_object($participations)) - echo ''; + while ($participation = pg_fetch_object($participations)) + echo ''; echo ''; echo '';
', htmlentities($participant->clan_tag, ENT_QUOTES, "UTF-8"), traitement_pre_affichage($participant->pseudo), '', traitement_pre_affichage($participant->nom), '', traitement_pre_affichage($participant->prenom), 'participant_id == $participant->id ? 'class="participe"' : '').'>participant_id == $participant->id ? 'class="participe"' : '').'>', traitement_pre_affichage($participant->remarques), '