# affichage des participants
if (pg_num_rows($res_SQL) > 0)
echo '<ul id="participants">';
- for ($i=0; $i<pg_num_rows($res_SQL); $i++)
- {
- pg_data_seek($res_SQL, $i);
- $le_participant_pseudo = pg_fetch_object($res_SQL);
- echo '<li>', traitement_pre_affichage($le_participant_pseudo->pseudo, 8), '</li>';
- }
+ while ($participant_pseudo = pg_fetch_object($res_SQL))
+ echo '<li>', traitement_pre_affichage($participant_pseudo->pseudo, 8), '</li>';
if (pg_num_rows($res_SQL) > 0)
echo '</ul>';
- if($this->participant->valide)
+ if($this->participant->existe())
{
echo'
<form method="post" action="index.php?';