Jump to content

/> appearing when database text is shown


rockon

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.