php/mysql help

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 52
Joined: Tue May 01, 2012 12:30 pm

php/mysql help

Postby ianhaney » Fri Dec 14, 2012 12:43 pm


on my website I have products and in the product description I am getting \n\r showing after each line where as it should be hiding it for example see below

16 ml in each bottle\r\nLuxury Style Bottles\r\nAvailable in White, Clear, Peach, Purple, Red, Pink and Black

it should be like below

16 ml in each bottle
Luxury Style Bottles
Available in White, Clear, Peach, Purple, Red, Pink and Black

Any ideas as not sure if it is the php file or the database causing the issue

To see the issue go here -

Thank you in advance


User avatar
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: php/mysql help

Postby egami » Mon Dec 17, 2012 10:38 am

HTML uses <br> to line break.

Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 1 guest