php/mysql help

Discussion in 'PHP' started by ianhaney, Dec 14, 2012.

  1. #1
    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
     
    ianhaney, Dec 14, 2012 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    EricBruggema, Dec 14, 2012 IP
  3. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #3
    It's actually nl2br, nl (newline) to br (break).
     
    Rukbat, Dec 20, 2012 IP