0

I want to add a new line and when I tried "/n", it did not work.

`while($row_selecttemptable = mysql_fetch_array($result_selecttemptable))

          echo $row_selecttemptable['ArtistName'] . ' ,' . $row_selecttemptable['NAMEOfTheDVD'];`

I want to add a new line between ArtistName and Name of The DVD

4
Contributors
7
Replies
34
Views
3 Years
Discussion Span
Last Post by diafol
1

Newline in HTML is <br> tag (a break):

echo $row_selecttemptable['ArtistName'] . ' ,<br>' . $row_selecttemptable['NAMEOfTheDVD'];`
1

As both above but \n will only work when in double quotes - not single quotes. Single quotes will output the literal backslash and n.

Edited by diafol

0

Thank You very much, for all your respones. I would just like to add that the "\n" did not work(for me), but the br did.

Thanks You.

0

As a follow up - "\n" will show up correctly if you're prettifying your html output (view source in the browser).

0

Well. it only put a space but it did not actually go to a newline

\n won't show in general browser view, only in view source or in a textarea.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.