Re: inserting ´ in a db

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



dmagick@xxxxxxxxx (Chris) writes:

> > Everting works fine, except when I try to insert a text that includes a
> > simple quote. 

> http://www.php.net/mysql_real_escape_string

     I'll see you that and raise you PEAR's database interfaces:

http://pear.php.net/package/DB - especially DB_common::quoteSmart() 

or the more modern

http://pear.php.net/package/MDB2

     I'm still partial to DB but suppose I will eventually have to move
to MDB2.

-- Tom Swiss / tms(at)infamous.net / www.infamous.net / www.unreasonable.org
    "What's so funny about peace, love, and understanding?" - Nick Lowe
                  "Power to the Peaceful" - Michael Franti

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux