function __construct($type, $host, $user, $pass, $db, $debug) { $this->_adoConnection = NewADOConnection($type); $this->_adoConnection->debug = $debug; $status = $this->_adoConnection->Connect($host, $user, $pass, $db); if (!$status) { throw new Exception("Không kết nối được CSDL"); } $this->_adoConnection->SetCharSet('utf8'); $this->_adoConnection->SetFetchMode(ADODB_FETCH_ASSOC); }