php/mysql help

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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

php/mysql help

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

Hi

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 - http://www.worldofcosmetics.co.uk/product_info.php?cPath=28&products_id=169

Thank you in advance

Ian

User avatar
egami
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 3 guests