
[mysql]
db.adapter=PDO_MYSQL
db.params.host=localhost
db.params.username=root
db.params.password=root
db.params.dbname=votedb

$url = constant("APPLICATION_PATH"). DIRECTORY_SEPARATOR . 'configs' .
DIRECTORY_SEPARATOR .'application.ini' ;
$dbconfig = new Zend_Config_Ini( $url , "mysql");
$db = Zend_Db::Factory( $dbconfig->db );
$db->query ( ' SET NAMES UTF8' );
Zend_Db_table::setDefaultAdapter( $db );
相关文章:
-
2022-12-23
-
2021-09-01
-
2022-02-22
-
2022-12-23
-
2022-12-23
-
2021-09-02
-
2022-02-02
-
2021-10-08
猜你喜欢
-
2021-11-21
-
2021-10-08
-
2022-02-03
-
2021-07-27
-
2021-09-27
-
2022-12-23
-
2021-06-02
相关资源
-
下载
2023-03-03
-
下载
2021-06-24
-
下载
2021-06-05