Announcement

Collapse
No announcement yet.

double escaping quotes in php/sql

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    double escaping quotes in php/sql

    Hi all,

    I'm writing some php for a mysql driven site and I'm having trouble disabling magic quotes on the server.

    I'm keen to write portable code so i'm using mysql_real_escape_string() but of course I'm ending up with double \\ on ' etc on this server

    just wondering if anyone can think of an example where this could be a particular problem?

    Thanks,

    Matt
    http://www.itwiz.co.uk

    http://www.AntiV.net - The Discount Antivirus Store

    #2
    can't you just switch off magic quotes with a .htaccess file? As far as I was aware very few hosts use them now anyway...they're off by default mostly and are not even in PHP6 so may be worth switching hosts anyway
    The Pretty Dress Company

    Comment

    Working...
    X