Re: [PHP-DB] PDO Exception Handling Question

2006-04-02 Thread chris smith
On 4/2/06, Rodney Topor <[EMAIL PROTECTED]> wrote: > I've just started using PDO with PHP 5.1 and MySQL 5.0. Everything > seems to work fine, except for one issue with the following example > from the PHP manual. > > try { > $dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass); >

Re: [PHP-DB] PDO Exception Handling Question

2006-04-02 Thread Rodney Topor
I did some more checking. If there is an error in the "new PDO(...)" constructor call, then it does get into the catch block and print an appropriate error message. (Good. Perhaps I was previously mistaken.) But if there is an error in the "SELECT" query (either syntax error, or reference to m