Re: Why does this work on one server, but not another?

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

 



On 3/23/06, tedd <tedd@xxxxxxxxxxxx> 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

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