Posted by mpar612 on 04/29/07 20:06
> (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!
Navigation:
[Reply to this message]
|