Modérateur PHPfrance |
10684 Messages
13 avr. 2006, 17:50
Et avec un indice coloré, y verrais tu plus clair ? Tu peux aussi t'aider du message d'erreur retourné par php pour situer la ligne qui pose problème (même si en général il faut remonter d'une ligne ou deux)
Je reprend ton code de la premiere page :
<?php
...
// on fait une boucle qui va faire un tour pour chaque enregistrement
while($data = mysql_fetch_assoc($req))
{
// on affiche les informations de l'enregistrement en cours
echo' <table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<TD width="21"><IMG height=50 alt=""
src="../logos/tlc.gif"
width=20 border=0 name=tlc></TD>
<TD width="678"
background="../logos/tm.gif" colspan="2"><IMG
height=1 alt=""
src="../logos/spacer.gif"
width=1 border=0 name=tm></TD>
<TD width="21"><IMG height=50 alt=""
src="../logos/trc.gif"
width=20 border=0 name=trc></TD>
</tr>
<tr>
<TD
background="../logos/left.gif" rowspan="3" width="21"><IMG
height=1 alt=""
src="../logos/spacer.gif"
width=1 border=0 name=left></TD>
<TD vAlign=middle bgColor=#000000 align="center" width="100%">
<font color="#FF7E00"><b>'.$data['nom'].'</b></font>
<hr>
</TD>
<TD vAlign=middle bgColor=#000000 align="center">
echo '<img src="'.$dossier_img;
echo ( file_exists($dossier_img.'logo_cours_'.$data['ID']) ) ? 'logo_cours_'.$data['ID'] : 'no_logo.gif' ;
echo '" width="111" height="46" border="0"/>';
</TD>
<TD
background="../logos/right.gif" rowspan="3" width="21"><IMG
height=1 alt=""
src="../logos/spacer.gif"
Comme tu peux le voir, les mots clés php comme ton while et ton premier echo sont normalement
en vert et les chaines de caractères placées entre apostrophes
'sont en rouge'... vois tu mieux à partir de quel moment ça commence à clocher et à quel endroit il te manque apostrophe et point virgule ?