voila mon code actuelement...
<?php
// Script par monkey D Akira ou D Boulon
// Tout droits rerservés
// www.Elysion.com
$colonne=0;//début du comptage des colonnes
$ligne=0;//début du comptage des lignes
echo '<table cellpadding=0 cellspacing=0 width="138">
<tr>
<td width="100"><table width="" border="1" align=center cellpadding=0 cellspacing=0>
<tr align=center>
<td height="25" colspan=2><center><b>Ami(e)(S)</b></center></td>
</tr>
<tr valign=top>
<td width="110"><table width="100" height="" border="1">
<tr>';
$info2 = mysql_query("SELECT * FROM character_friends WHERE charId='".$_GET['charId']."'");
$nombr_result = mysql_num_rows($info2);
if ($nombr_result) // si Character à des amis
{
while ($info=mysql_fetch_array($info2))
{
echo '<td width="120">';//ouverture de la première colonne
echo '<b>
<center><img src="images/items/'.$info['item_id'].'.gif"/></center></b>';
echo '</td>'; //fermeture
$colonne++;
if($colonne==10) //la colonne 3 est éteinte
{
$colonne=0; // réinitialisation des colonnes
$ligne++; //incrémentation des lignes
echo '</tr>'; //fermeture de la ligne en cours
if($ligne<1) echo '<tr>'; //ouverture de la prochaine ligne
}
}
else // Si Character est un sans ami
{
echo '<td width="120">';//ouverture de la première colonne
echo "pas d'amis";
echo '</td>'; //fermeture
echo '<tr>';
}
echo'</tr></table></table></table>';
?>
il me fai une erreur assez amusante Parse error: syntax error, unexpected T_ELSEmerci de votre aide les Zamis