MOD déplacement des fichiers php dans le dossier PHP (sauf index.php)
[cl7.git] / php / participants.php
1 <html>
2 <head>
3 <title>Toutes les infos des participants de la corcelles-lan</title>
4 </head>
5 <body>
6 <h1>Toutes les infos des participants de la corcelles-lan</h1>
7 <?php
8
9 include('config.php');
10
11 function ON($condition)
12 {
13 return $condition ? 'Oui' : 'Non';
14 }
15
16 #connection à la base de données
17 $lien_mysql = mysql_connect ($SQL_HOTE, $SQL_LOGIN, $SQL_PASS);
18 mysql_select_db ($NOM_BASE);
19
20 $requ = mysql_query("select * from participants order by pseudo");
21
22 echo
23 '<table width="100%" border="2" cellpadding="2" cellspacing="2"><tr>
24 <td><b>Pseudo</b></td>
25 <td><b>Clan</b></td>
26 <td><b>Prénom + nom</b></td>
27 <td><b>age</b></td>
28 <td><b>E-mail</b></td>
29 <td><b>N°ICQ</b></td>
30 <td><b>Souhaite participer au tournoi War3 ?</b></td>
31 <td><b>Souhaite participer au tournoi Ra3 ?</b></td>
32 <td><b>Remarque</b></td>
33 <td><b>A payé ?</b></td>
34 </tr>
35 ';
36
37 while($participant = mysql_fetch_object($requ))
38 {
39 echo '<tr>',
40 '<td>',$participant->pseudo,'</td>',
41 '<td>',($participant->clan_nom==''?'':'('.$participant->clan_tag.')'.$participant->clan_nom),'</td>',
42 '<td>',$participant->prenom, ' ', $participant->nom,'</td>',
43 '<td>',$participant->age,'</td>',
44 '<td>',$participant->e_mail,'</td>',
45 '<td>',$participant->icq,'</td>',
46 '<td>',ON($participant->tournoi_war3_1),'</td>',
47 '<td>',ON($participant->tournoi_ra3_1),'</td>',
48 '<td>',$participant->remarque,'</td>',
49 '<td>',ON($participant->a_paye),'</td>',
50 '<tr>';
51 }
52 echo '</table>';
53
54 ?>
55 </body>
56 </html>