0
$db = Db::factory('PDO_MYSQL', $params);
$stmt = $db->query('SELECT Name, Code, Region FROM album LIMIT 0, 150');
4

1 回答 1

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
于 2013-10-05T11:04:43.753 回答