/home/wwwroot/qtnonfu/lib/db/mysql_driver.php[ 187 ]
182 }
183 public function getErrno() {
184 return ($this->_link) ? mysql_errno ( $this->_link ) : mysql_errno ();
185 }
186 public function halt($message = '', $sql = '') {
187 throw new keke_exception ( ':error [ :query ]', array ('msg'=>$message,':error' => mysql_error ( $this->_link ), ':query' => $sql ), mysql_errno ( $this->_link ) );
188 exit ();
189 }
190 public function special_filed(&$value) {
191 if ('*' == $value || false !== strpos ( $value, '(' ) || false !== strpos ( $value, '.' ) || false !== strpos ( $value, '`' )) {
192 } else {
-
/home/wwwroot/qtnonfu/index.php [ 145 ] » require ( arguments )
0
string(38) "/home/wwwroot/qtnonfu/control/zbzj.php"
140 $nowurl = $_SERVER['PHP_SELF']; 141 } 142 143 return $nowurl; 144 } 145 require 'control/' . $do . '.php'; 146 require $kekezu->_tpl_obj->template ( $do );
-
/home/wwwroot/qtnonfu/control/zbzj.php [ 10 ] » db_factory::query ( arguments )
0
string(186) "select a.*,b.type_id,b.skill_descript from keke_witkey_expert_video a left join keke_witkey_expert b on a.uid=b.uid where `status`=1 group by a.video_id order by create_time desc limit 4"
5 //专家视频列表 6 //$video_obj = new Keke_witkey_expert_video_class(); 7 //$video_obj->setWhere("status=1 order by create_time desc limit 4"); 8 //$videoList = $video_obj->query_keke_witkey_expert_video(); 9 //unset($video_obj); 10 $videoList = db_factory::query(sprintf("select a.*,b.type_id,b.skill_descript from %switkey_expert_video a left join %switkey_expert b on a.uid=b.uid where `status`=1 group by a.video_id order by create_time desc limit 4",TABLEPRE,TABLEPRE)); 11 12 foreach($videoList as $k=>$v){ 13 $temp = strpos($v['video_img'],"http://"); 14 if($temp !== false){ 15 $videoList[$k]['video_img'] = $v['video_img'];
-
/home/wwwroot/qtnonfu/lib/db/db_factory.php [ 102 ] » keke_db->query ( arguments )
0
string(186) "select a.*,b.type_id,b.skill_descript from keke_witkey_expert_video a left join keke_witkey_expert b on a.uid=b.uid where `status`=1 group by a.video_id order by create_time desc limit 4"
1
int(0)
97 public static function query($sql, $is_cache = 0, $cache_time = 0, $is_unbuffer = 0) { 98 $db = self::init (); 99 $result=''; 100 if(IS_CACHE){ 101 $cache_time > 0||is_null($cache_time) and ($result = self::db_cache ( 1, $sql, $cache_time ) and $cached=1); 102 $result or ($result = self::$db_obj->query ( $sql, $is_unbuffer ) and $cached=0); 103 if($result&&$result!='QUERY_EMPTY'){ 104 !$cached&&self::db_set_cache ($sql, $cache_time, $result ); 105 return $result; 106 }else{ 107 !$cached&&self::db_set_cache ($sql, $cache_time);
-
/home/wwwroot/qtnonfu/lib/db/db_factory.php [ 81 ] » mysql_drver->query ( arguments )
0
string(186) "select a.*,b.type_id,b.skill_descript from keke_witkey_expert_video a left join keke_witkey_expert b on a.uid=b.uid where `status`=1 group by a.video_id order by create_time desc limit 4"
1
int(0)
76 } 77 public function get_one($sql) { 78 return $this->_mydb->get_one_row ( $sql ); 79 } 80 public function query($sql, $is_unbuffer = 0) { 81 return $this->_mydb->query ( $sql, $is_unbuffer ); 82 } 83 public function __destruct() { 84 $this->_mydb->close (); 85 } 86 }
-
/home/wwwroot/qtnonfu/lib/db/mysql_driver.php [ 33 ] » mysql_drver->execute_sql ( arguments )
0
string(186) "select a.*,b.type_id,b.skill_descript from keke_witkey_expert_video a left join keke_witkey_expert b on a.uid=b.uid where `status`=1 group by a.video_id order by create_time desc limit 4"
1
int(0)
28 } 29 mysql_select_db ( $this->_dbname, $this->_link ) or $this->halt ( 'select database:' . $this->_dbname . ' fail!' ); 30 return $this->_link; 31 } 32 public function query($sql, $is_unbuffer = 0) { 33 $this->execute_sql ( $sql, $is_unbuffer ); 34 $result = array (); 35 while ( ($rs = $this->fetch_array ()) != false ) { 36 $result [] = $rs; 37 } 38 $this->free_result ();
-
/home/wwwroot/qtnonfu/lib/db/mysql_driver.php [ 153 ] » mysql_drver->halt ( arguments )
0
string(51) "Table 'qtnf.keke_witkey_expert_video' doesn't exist"
1
string(186) "select a.*,b.type_id,b.skill_descript from keke_witkey_expert_video a left join keke_witkey_expert b on a.uid=b.uid where `status`=1 group by a.video_id order by create_time desc limit 4"
148 } 149 protected function execute_sql($sql, $is_nubuffer = 0) { 150 ! is_resource ( $this->_link ) and $this->dbConnection (); 151 $is_nubuffer == 1 and $query_type = "mysql_unbuffered_query" or $query_type = "mysql_query"; 152 array_push($this->_query_sql, $sql); 153 $this->_last_query_id = $query_type ( $sql, $this->_link ) or $this->halt ( mysql_error (), $sql ); 154 $this->_query_num ++; 155 return $this->_last_query_id; 156 } 157 public function get_query_num() { 158 return $this->_query_num;