HTML in PHP

From: Date: Sun, 28 Apr 2002 13:51:26 +0000
Subject: HTML in PHP
Groups: php.general 
Request: Send a blank email to php-general+get-94982@lists.php.net to get a copy of this message
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

« previous php.general (#94982) next »