
[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 );
相关文章:
-
2021-09-13
-
2021-09-24
-
2021-11-01
-
2021-08-08
-
2021-08-08
-
2021-08-08
-
2021-11-24
-
2021-10-19
猜你喜欢
-
2021-12-04
-
2021-11-21
-
2021-07-18
-
2021-11-10
-
2021-04-09
-
2021-10-03
-
2021-12-19
-
2021-11-17
相关资源
-
下载
2023-03-03
-
下载
2021-06-24
-
下载
2022-12-08