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"; } Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/88966-solved-n-not-working/#findComment-455637 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.