note 73190 deleted from function.PDO-errorInfo by nlopess
| From: | nlopess@php.net | Date: | Wed, 14 Feb 2007 19:45:03 +0000 |
| Subject: | note 73190 deleted from function.PDO-errorInfo by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-123379@lists.php.net to get a copy of this message | ||
Note Submitter: whoflungpoo at simian_sabatoge dot net
Reason: integrated
----
I think the above example is mistaken - $err would be false after the first line executes. Resulting
in calling the execute() method on a non-object. Perhaps this is the more likely scenario:
<?php
if(!$statement = $dbh->prepare('SELECT skull FROM bones'))
{
echo "\nPDO::errorInfo():\n";
print_r($dbh->errorInfo());
}
...
?>