This is a discussion on unexpected T_STRING problem.. within the alt.comp.lang.php forums, part of the PHP Programming Forums category; hi with this function i get: function retournlisteartricle($nosection) { echo '<table>'; $requete = mysql_query("SELECT art_noarticle, art_titre FROM ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
hi
with this function i get: function retournlisteartricle($nosection) { echo '<table>'; $requete = mysql_query("SELECT art_noarticle, art_titre FROM ARTICLE WHERE sou_nosoussection=$nosection"); // affiche l'article en question if ( mysql_num_rows($requete) != 0 ) { while ($ligne = mysql_fetch_assoc($requete)) { echo'<tr><td><a href="lsttutoriel.php?art_noarticle='.$ligne["art_noarticle"].'">'.$ligne["art_titre"].'</a></td></tr>'; } } echo '</table>'; } Parse error: parse error, unexpected T_STRING, expecting ']' any idea -- Borland rulez http://pages.infinit.net/borland |
|
|||
|
"Marc Collin" <os2@videotron.ca> wrote in message
news:Iq_jc.119258$Tu2.2280758@weber.videotron.net. .. > hi > > with this function i get: > > function retournlisteartricle($nosection) > { > echo '<table>'; > > $requete = mysql_query("SELECT art_noarticle, art_titre FROM ARTICLE > WHERE sou_nosoussection=$nosection"); > // affiche l'article en question > if ( mysql_num_rows($requete) != 0 ) > { > while ($ligne = mysql_fetch_assoc($requete)) > { > echo'<tr><td><a > href="lsttutoriel.php?art_noarticle='.$ligne["art_noarticle"].'">'.$ligne["a rt_titre"].'</a></td></tr>'; > } > } > echo '</table>'; > > } > > Parse error: parse error, unexpected T_STRING, expecting ']' You probably need to \" up your quotes in the echo... -- Gorf |