gestion des pages avec requêtes MySql
Bonjour,
je développe sous Debian, c'est beaucoup plus stable !
j'ai une erreur qui apparais dans mon log, ou j'essaie de construire un tableau suite a une requête SELECT.
voici l'extrait de mon code avec l'erreur indiqué par le log a la ligne 15 :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| while ($data = $stmt->fetch())
{
echo '<table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><strong> Date : '.(htmlspecialchars($data['date_message_fr']).'</strong></td>
</tr>
<tr>
<td><strong> Ecrit par : '.(htmlspecialchars($data['pseudo'])).'</strong></td>
</tr>
<tr>
<td><strong> Message : '.(htmlspecialchars($data['message'])).'</strong></p></dt>
</tr>
</table><br /><br />'
}; // erreur est ici
echo '<p align="center">Page : '; |
extrait de mon log :
Code:
error: syntax error, unexpected '}' in /var/www/html/cours/mini-chat/minichat.php on line 104, referer: http://127.0.0.1/cours/mini-chat/