[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 );