Reply to Re: pear DB converting ' to &#039 - how to convert back?

Your name:

Reply:


Posted by Adam Harvey on 01/09/07 06:01

On Mon, 08 Jan 2007 13:20:34 -0500, Paul wrote:
> I have tested my logic flow and determined that the conversion from what is
> given to the
> $db->prepare() statement and what is stored in the database iteslf goes
> from:
>
> "I'm helpful"
> to
> "I'm helpful"
>
> is converted by pear's DB. I am using $db->prepare() statement. When I do
> a print_r() of $db after the prepare(), it does display:
> ...., field2 = 'I'm helpful', field3=....
>
> but what ends up in the database is:
> "I'm helpful"
>
> I'm using PHP 4.3 and have tried html_entity_decode() and others
> unsuccessfully.
>
> Any ideas?

That certainly doesn't seem like something DB would or should do. Can you
tell me exactly what version of PHP and DB you have installed, please,
along with the DB driver you're using (pgsql, oci8, etc)?

Thanks,

Adam (PEAR DB maintainer)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация