Re: Why does this work on one server, but not another?
| From: | Michael Crute | Date: | Thu, 23 Mar 2006 18:21:24 +0000 |
| Subject: | Re: Why does this work on one server, but not another? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-232465@lists.php.net to get a copy of this message | ||
On 3/23/06, tedd <tedd@sperling.com> wrote:
> >Are you escaping the image string before you insert it?
>
> Aaahh, no ?? Why is it going to attack me?
>
> But seriously, it works on one server, why not the other?
>
> On the other hand, it appears to object to
> something within the string -- so that might be
> the problem. Please forgive my ignorance, but how
> would I escape the image string -- do I use
> dbx_escape_string() or would something else be
> better?
I would base64encode the image string before puting it into the
database then you would probably not run in to quoting issues.
http://us3.php.net/base64encode
--
________________________________
Michael E. Crute
http://mike.crute.org
It is a mistake to think you can solve any major problems just with potatoes.
--Douglas Adams