Reply to Re: PHP 5 and PDO

Your name:

Reply:


Posted by Schraalhans Keukenmeester on 04/29/07 20:23

On Sun, 29 Apr 2007 13:06:51 -0700, mpar612 wrote:

>> (assuming you posted all relevant code)
>>
>> You create a PDO instance $dbh, use it, and then you destroy the object:
>> the next query can never be executed. Why the $dbh=null; ?
>> Either strip those out of your code, or re-instantiate a PDO object before
>> using it again.
>>
>> The object will automatically be destroyed by PHP when the script ends.
>>
>> HTH
>>
>> Sh
>
> Thanks! I removed those $dbh=null; and still no luck. I know the SQL
> statements are correct. They work perfectly in the code that I wrote
> the code that uses the PEAR DB module. I have posted every bit of PHP
> code that is on the page. All of the rest is just static HTML. Any
> other thoughts? Thanks!

You're welcome.

Sorry, I am not even remotely familiar with PDO's intricacies. Any attempt
to say something meaningful about it on my part would be a waste of group
space.

Amygdala seems to have at least some experience with PDO, he's your man!
Signing off on this one.


Rgds
Sh.

[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

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