Results 1 to 2 of 2

Thread: php/mysql help

Hybrid View

  1. #1
    Join Date
    Apr 2012

    php/mysql help


    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


  2. #2
    Join Date
    Aug 2004
    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.
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

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