Tuesday, July 30, 2013

PHP Zend Database Connection With MySql

$params = array(
                             'host'        =>'localhost',
                             'username'    =>'sakib',
                             'password'  =>'sj99RR$''',
                             'dbname'    =>'rfc',
                             'charset'  => 'utf8',
                          );

    $DB = new Zend_Db_Adapter_Pdo_Mysql($params);
    Zend_Registry::set('DB',$DB);
    Zend_Db_Table::setDefaultAdapter($DB);

No comments:

Post a Comment