/home/admin/wwwroot/dlsstax/order/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/admin/wwwroot/dlsstax/order/index.php [ 114 ] » require ( arguments )
0
string(52) "/home/admin/wwwroot/dlsstax/order/control/answer.php"
109 $arrUser=db_factory::get_one("select * from hd_user where uid=".$gUid); 110 111 } 112 $isMobile = CommonClass::isMobile(); 113 $isMobile and define('IS_MOBILE', TRUE) or define('IS_MOBILE', FALSE); 114 require 'control/' . $do . '.php'; 115 if ($_K['theme'] && file_exists('tpl/default/theme/' . $_K ['theme'] . '/' . $do . '.htm')) { 116 require $kekezu->_tpl_obj->template('tpl/default/theme/' . $_K ['theme'] . '/' . $do); 117 } else { 118 require $kekezu->_tpl_obj->template($do); 119 }
-
/home/admin/wwwroot/dlsstax/order/control/answer.php [ 113 ] » db_factory::query ( arguments )
0
string(35) "SELECT * FROM `hd_user` WHERE uid="
108 } 109 $strPageTitle = "问答详情"; 110 $order_uid=$answer['order_uid']; 111 $seller_uid=$answer['seller_uid']; 112 $strSql4="SELECT * FROM `hd_user` WHERE uid=".$order_uid; 113 $cancellation = db_factory::query ( $strSql4 ); 114 $cancellation=$cancellation[0]; 115 //print_r($cancellation);die; 116 $strSql5="SELECT * FROM `hd_user` WHERE uid=".$seller_uid; 117 $service= db_factory::query ( $strSql5 ); 118 $service=$service[0];
-
/home/admin/wwwroot/dlsstax/order/lib/db/db_factory.php [ 111 ] » keke_db->query ( arguments )
0
string(35) "SELECT * FROM `hd_user` WHERE uid="
1
int(0)
106 }else{ 107 !$cached&&self::db_set_cache ($sql, $cache_time); 108 return array(); 109 } 110 }else{ 111 return $result = self::$db_obj->query ( $sql, $is_unbuffer ); 112 } 113 } 114 public static function inserttable($tablename, $insertsqlarr, $returnid = 1, $replace = false) { 115 $db = self::init (); 116 $result = $db->inserttable ( $tablename, $insertsqlarr, $returnid, $replace );
-
/home/admin/wwwroot/dlsstax/order/lib/db/db_factory.php [ 81 ] » mysql_drver->query ( arguments )
0
string(35) "SELECT * FROM `hd_user` WHERE uid="
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/admin/wwwroot/dlsstax/order/lib/db/mysql_driver.php [ 33 ] » mysql_drver->execute_sql ( arguments )
0
string(35) "SELECT * FROM `hd_user` WHERE uid="
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/admin/wwwroot/dlsstax/order/lib/db/mysql_driver.php [ 153 ] » mysql_drver->halt ( arguments )
0
string(148) "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1"
1
string(35) "SELECT * FROM `hd_user` WHERE uid="
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;