$cnn = new COM("ADODB.Connection",null,CP_UTF8) or die("Cannot start ADO");
$cnn->Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\db.mdb;Persist Security Info=False");
$rs = $cnn->Execute("select * from table");
while(!$rs->EOF){
$dt = $rs->Fields["date"]->Value;
echo $dt;
$rs->MoveNext();
}
$rs=$cnn=null;
$db = new PDO("odbc:DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=$dbName; Uid=; Pwd=;");
'db'=>array(
'class'=>'CDbConnection',
'connectionString' => 'odbc:DRIVER={Microsoft Access Driver (*.mdb)};Dbq=d:\\db.mdb;',
'username'=>'',
'password'=>'',
),
$res=Yii::app()->db->createCommand('select * from table');
$rows=$res->queryAll();
foreach($rows as $row) {
print_r($row);
}