Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: db_pdo.php 3873 2008-06-01 03:52:49Z Tikitiki $
| * $Id: db_pdo.php 5379 2011-02-21 11:06:42Z Tomm $
|
*/
class dbpdoEngine {
| */
class dbpdoEngine {
|
Zeile 46 | Zeile 46 |
---|
} catch(PDOException $exception) {
|
} catch(PDOException $exception) {
|
echo 'Connection failed: '.$exception->getMessage();
| die('Connection failed: '.$exception->getMessage());
|
} $this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
| } $this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
Zeile 223 | Zeile 223 |
---|
*/ function get_attribute($attribute) {
|
*/ function get_attribute($attribute) {
|
$attribute = constant("PDO::{$attribute}");
| $attribute = $this->db->getAttribute(constant("PDO::".$attribute.""));
|
return $attribute; }
| return $attribute; }
|