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 に答える