echo mysql_result($result,$i, "NAME");<br>
should be:
echo mysql_result($result,$i, "NAME") . '<br>';
Andrew
----- Original Message -----
From: "Christian Ista" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 28, 2002 2:51 PM
Subject: [PHP] HTML in PHP
> Hello,
>
> I have a newbie question for you.
>
> I do a query, I'd like to display the result but I'd like to go to a new
> line for each row.
>
> I use this code that's work :
> <?php
> for ($i = 0; $i<mysql_num_rows($result); $i++)
> {
> echo mysql_result($result,$i, "NAME");
> }
> ?>
>
> but this not work
>
> <?php
> for ($i = 0; $i<mysql_num_rows($result); $i++)
> {
> echo mysql_result($result,$i, "NAME");<br>
> }
> ?>
>
> Could you tell me how I can do to have a <br> after each row.
>
> Thanks for your help :)
>
> Bye
>
>
>
>
>
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php