Exemple en image :
Code Php :
Code PHP :
<?php
mysql_connect('IP DU SERV SQL', 'UTILISATEUR', 'PASSWORD'); // Infos connexion
mysql_select_db('characters'); // La bdd des persos.
$resaa = mysql_query('SELECT * FROM characters WHERE online=1');
while($data = mysql_fetch_assoc($resaa)) {
?>
</p>
<table width="99%" border="2" cellspacing="0" cellpadding="0">
<tr>
<th width="30%" scope="col"><?php echo $data['name']; ?></th>
<th width="44%" scope="col"><?php echo "<img src='icons2/".$data['race'].".gif' width='25' height='25'>"; ?><?php echo "<img src='icons2/races/".$data['class'].".gif'>"; ?></th>
<th width="26%" scope="col"><?php echo "Niveau " ; echo $data['level']; ?></th>
</tr>
</table>
<p>
<?php
}?>
Ce lien a été téléchargé fois
Voilà pour vous
Silver.