1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
| <html>
<head>
<title>Pages des joueurs Connéctés</title>
</head>
<body>
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<th>Joeur</th>
<th>Compte</th>
</tr>
<?php
$host = localhost;
$user = Maitre de jeu;
$bdd = ffr_module;
$passwd = pass;
mysql_connect($host, $user,$passwd) or die("erreur de connexion au serveur");
mysql_select_db($bdd) or die("erreur de connexion a la base de donnees");
$query = "SELECT Player, Name FROM idplayer WHERE Actif = 1";
$result = mysql_query($query);
while($row = mysql_fetch_row($result)){
$Nom = $row[0];
$Url = $row[1];
echo "<tr>\n
<td><a href=\"$Url\">$Nom</a></td>\n
<td>$Url</td>\n
</tr>\n";
}
mysql_close();
?>
</tr>
</table>
</body>
</html> |
Partager