www.webdeveloper.com
Results 1 to 2 of 2

Thread: php/mysql help

  1. #1
    Join Date
    Apr 2012
    Posts
    39

    php/mysql help

    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/pr...roducts_id=169

    Thank you in advance

    Ian

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,321
    Tough to tell without seeing any code. Might be aa symptom of "double escaping" data being inserted into the DB, often a result of having PHP's deprecated magic_quotes_gpc feature enabled, or you are setting values somewhere within your PHP code using single quotes when you need to use double quotes for those special escape sequences to work.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles