bob pilly wrote:
It seems to me that the addslashes isnt working and
the  query is failing because of this? Has anyone seen
this before or know what i am doing wrong? Ive been on
this for ages and are not getting anywhere.. Thanks
for any help in advance!

You don't escape single quotes with MSSQL you repeat them. Try this instead...


$data = str_replace("'", "''", $filecontent);

--
Stuart

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



Reply via email to