ShaolinF Posted February 1, 2008 Share Posted February 1, 2008 Hi guys, I am trying to add a newline after every loop but it doesn't work: while ($row = mysql_fetch_assoc($result)) { echo $row['name'] . " " . $row['totalPrice']; echo "\n"; } Link to comment https://forums.phpfreaks.com/topic/88966-solved-n-not-working/ Share on other sites More sharing options...
effigy Posted February 1, 2008 Share Posted February 1, 2008 \n means nothing to an HTML document in terms of display. < br/>, on the other hand, does. Link to comment https://forums.phpfreaks.com/topic/88966-solved-n-not-working/#findComment-455637 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.