$db = Db::factory('PDO_MYSQL', $params);
$stmt = $db->query('SELECT Name, Code, Region FROM album LIMIT 0, 150');
答案 0 :(得分:0)
$db = Zend_Db::factory('Pdo_Mysql', array(
'host' => '127.0.0.1',
'username' => 'webuser',
'password' => 'xxxxxxxx',
'dbname' => 'test'
));
这是正确的班级名称
Db.php is the file name but the class is Zend_Db