I just started to learn PHP and had a (hopefully!) quick question.
I was going to create a lyrics page that would list a bunch of song lyrics. When I type the lyrics in my database, it comes out one big string (even though I put carriage returns in) Is it possible to have the lyric field look like this:
mary had a
mary had a little lamb little lamb little lamb
when I display it on the web page?
(lyrics are just an example! :))
You can use the function nl2br() to convert the line feeds to <br>s e.g.
$lyrics = nl2br( $lyrics );