public function db_connect($persistent = FALSE)
{
$this->options[PDO::ATTR_PERSISTENT] = $persistent;
try {
return new PDO($this->dsn, $this->username, $this->password, $this->options);
} catch (PDOException $e) {
if ($this->db_debug && empty($this->failover)) {
$this->display_error($e->getMessage(), '', TRUE);
}
return FALSE;
}
}