Re: HTML in PHP
| From: | Andrew Brampton | Date: | Sun, 28 Apr 2002 13:56:01 +0000 |
| Subject: | Re: HTML in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94983@lists.php.net to get a copy of this message | ||
echo mysql_result($result,$i, "NAME");<br>
should be:
echo mysql_result($result,$i, "NAME") . '<br>';
Andrew
----- Original Message -----
From: "Christian Ista" <christian.ista@teledisnet.be>
To: <php-general@lists.php.net>
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
>
>
>
>
>
>
>
>