Jump to content

new line help


makatak88

Recommended Posts

gday all!

 

just starting to learn php but having a liitle problem with \n forcing a line break. in my situation it simply doesnt.

looking at this what have i done wrong?

echo "<div class=\"imgcontainer\"><a href='$row[filename]'  rel='shadowbox[thingo]'><img class= 'thumbnail' img src='$row[filename]'/></a><div class=\"thetext\">Artwork: $row[name]\nArtist:$row[artist]</div></div> ";

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/262577-new-line-help/
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.