rockon Posted September 29, 2009 Share Posted September 29, 2009 Evening. I have a lyrics website - and when viewing a lyric i've just added to the database (example: http://www.megalyrics.net/view-441578-underoath_writing_on_the_walls.html) some random '/>' appear. I have some code that replaces a carriage return with a BR tag and when viewing the source it shows the BR tags and also the '/>'. The code I changed that affects the lyrics that are pulled in is: $lyrics = wordwrap(stripslashes(nl2br(mysql_result($lyricsqry2, 0, lyrics))), 100, "<br />\n", true); Link to comment https://forums.phpfreaks.com/topic/175876-appearing-when-database-text-is-shown/ Share on other sites More sharing options...
ChrisMartino Posted September 29, 2009 Share Posted September 29, 2009 $lyrics = wordwrap(stripslashes(nl2br(mysql_result($lyricsqry2, 0, lyrics))), 100, "\n", true); Tell me the results Link to comment https://forums.phpfreaks.com/topic/175876-appearing-when-database-text-is-shown/#findComment-926698 Share on other sites More sharing options...
rockon Posted September 29, 2009 Author Share Posted September 29, 2009 Lovely! Don't know why I didn't think of that. Thanks Link to comment https://forums.phpfreaks.com/topic/175876-appearing-when-database-text-is-shown/#findComment-926699 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.