I am creating a lyrics website, and am accessing lyrics from my MySQL database, all working, except all the lyrics are in a block and not paragraphed on the page when i click "nowrap" (in dreamweaver 8) it makes it all into 1 line, i cant make it format to paragraphs. by the way, the entry in the database does have paragraphs in the data. please help James.
Use nl2br() function as T0PS3O suggested that way your line breaks will be preserved. Use this before entering data into your database.
Would it also be wise to check for the existence of "<br>" via a case insensitive search of the text before applying nl2br()?
thanks guys! so where would i add this nl2br() function?? sorry i am a little confused! thanks guys - helps a lot!