PHP not showing line breaks Linebreak Problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Marcus
Forum Newbie
Posts: 4
Joined: Tue Jan 28, 2003 5:22 am

PHP not showing line breaks Linebreak Problem

Post by Marcus »

I have a query that is not returning linebreaks. When I echo the database it does not put the linebreaks in. I tried a string substitute of /n to <br> but that did not work. When I view the field in PHPmyAdmin it shows the linebreaks.

Any ideas?
User avatar
lazy_yogi
Forum Contributor
Posts: 243
Joined: Fri Jan 24, 2003 3:27 am

Post by lazy_yogi »

User avatar
Marcus
Forum Newbie
Posts: 4
Joined: Tue Jan 28, 2003 5:22 am

Post by Marcus »

Excellent! Worked perfectly, thanks for your help Yogi!
Post Reply