Re: Storing MS Word documents
| From: | bob pilly | Date: | Thu, 29 Jan 2004 11:11:18 +0000 |
| Subject: | Re: Storing MS Word documents | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-176179@lists.php.net to get a copy of this message | ||
Thanks Stuart. I tried that and i still get this
error:
Warning: mssql_query(): message: Unclosed quotation
mark before the character string 'ÐÏࡱá'. (severity
15) in /var/www/htdocs/searches3.php on line 23
Warning: mssql_query(): message: Line 1: Incorrect
syntax near 'ÐÏࡱá'. (severity 15) in
/var/www/htdocs/searches3.php on line 23
Warning: mssql_query(): Query failed in
/var/www/htdocs/searches3.php on line 23
Couldn't add file to database
--- Stuart <lists@sharedserver.net> wrote: > 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
>
________________________________________________________________________
BT Yahoo! Broadband - Free modem offer, sign up online today and save £80 http://btyahoo.yahoo.co.uk