Re[3]: HTML in database

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

 



>> Thanks.  Sorry, I should have mentioned I'm using MS Sql Server and
>> I don't see a mssql equivalent to that function.

> MSSQL treats '' as an escaped ', not \' like MySQL does.

> So you can't addslashes it. Perform your own ' to '' conversion.

And to reply to my own reply :) ...

If you can, use PDO with the PDO MSSQL driver instead.

Then let PDO worry about escaping for you!

Cheers,

Rich
-- 
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

-- 
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