摘要:
1 <?php 2 Class DB { 3 private $link_id; 4 private $handle; 5 private $is_log; 6 private $time; 7 //构造函数 8 public function __construct() { 9 $this->time = $this->microtime_float(); 10 require_once("config.db.php"); 11 $this->connect($db_confi... 阅读全文
摘要:
1 /** 2 * 给Zend_Db_Select增加where条件 3 * 4 * @param Zend_Db_Select $select 5 * @param array $where 6 * @return Zend_Db_Select 7 */ 8 protected function addWhereToSelect($select, $where) { 9 foreach ($where as $k=>$v) {10 if ($v === null) {11 ... 阅读全文
摘要:
1 /** 2 * 给Zend_Db_Select增加where条件 3 * 4 * @param Zend_Db_Select $select 5 * @param array $where 6 * @return Zend_Db_Select 7 */ 8 protected function addWhereToSelect($select, $where) { 9 foreach ($where as $k=>$v) {10 if ($v === null) {11 ... 阅读全文