/*连接数据库*/

$config=new Zend_Config_Ini("db.ini");

$adapter=$config->dbconfig->db->adapter;
 
$dbconfig=$config->dbconfig->db->config->toArray();

$db=Zend_Db::factory($adapter,$dbconfig);

Zend_Db_Table::setDefaultAdapter($db);

/*实例化数据表Admin对象*/

$this->_db=new Admin();

$arr=$this->_db->info(cols);

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
  • 2021-07-25
猜你喜欢
  • 2022-01-12
  • 2022-02-26
  • 2021-12-12
  • 2021-08-22
  • 2021-05-28
  • 2021-08-10
相关资源
相似解决方案