Re: [PHP-DEV] Re: destroy the current object (PDO)

2008-04-10 Thread Olivier Bonvalet
Ok, so if I don't want PDO stop the script on error, I have to always put a try-catch when calling the constructor, since the ATTR_ERRMODE is not used for connection. So I will update my scripts in this way... thanks. Olivier Johannes Schlüter a écrit : On Wed, 2008-04-09 at 10:14 +0200, Olivi

[PHP-DEV] Re: destroy the current object (PDO)

2008-04-10 Thread Johannes Schlüter
On Wed, 2008-04-09 at 10:14 +0200, Olivier Bonvalet wrote: > public function __construct( $dsn, $user, $password ) > { > try { > parent::__construct( $dsn, $user, $password ); > } catch( PDOException $e ) { > echo 'there is an error... but continue t