pb de lecture de la base de donnée
bonsoir,
j'ai un probleme avec une requete mysql
ma page affiche : Parse error: syntax error, unexpected T_VARIABLE in /home.2/p/l/a/planetgr/www/admin/liste_news.php on line 102
voila mon code :
Code:
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
|
<!--on commence par la table de titre-->
<table><tr>
<th>id</th>
<th>pseudo</th>
<th>e-mail</th>
<th>ip</th>
</tr>
<?php//on cherche les données dans la bdd
/*ligne 102*/$info = mysql_query("SELECT id, pseudo, e-mail, ip FROM membres") or die(mysql_error());
while($membres = mysql_fetch_array($info))
{
?>
<!--on affiche les données sous forme de tableau-->
<tr>
<td><?php echo $membres['id'];?></td>
<td><?php echo $membres['pseudo'];?></td>
<td><?php echo $membres['e-mail'];?></td>
<td><?php echo $membres['ip'];?></td>
</tr>
<?php
}
mysql_close();
?>
</table>
</div></center> |
pouvez-vous m'aider,
Merci d'avance:D