SELECT * FROM vn_pcat WHERE pid = '56' ORDER BY id
執行錯誤: MySQL server has gone away
- /www/wwwroot/www.hnpadz.com/Comm/MyFrame/Drivers/mysql.php on line 62
57.
{
58.
$this->arrSql[] = $sql;
59.
if( $result = mysql_query($sql, $this->conn) ){
60.
return $result;
61.
}else{
62.
63.
spError("{$sql}<br />執行錯誤: " . mysql_error());
}
64.
}
65.
66.
/**
67.
* 返回影響行數
- /www/wwwroot/www.hnpadz.com/Comm/MyFrame/Drivers/mysql.php on line 26
21.
*
22.
* @param sql 執行的SQL語句
23.
*/
24.
public function getArray($sql)
25.
{
26.
27.
if( ! $result = $this->exec($sql) )return array();
if( ! mysql_num_rows($result) )return array();
28.
$rows = array();
29.
while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
30.
mysql_free_result($result);
31.
array_pop($rows);
- /www/wwwroot/www.hnpadz.com/Comm/MyFrame/Core/spModel.php on line 103
98.
}else{
99.
$sort = "ORDER BY {$this->pk}";
100.
}
101.
$sql = "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
102.
if(null != $limit)$sql = $this->_db->setlimit($sql, $limit);
103.
104.
return $this->_db->getArray($sql);
}
105.
/**
106.
* 過濾轉義字符
107.
*
108.
* @param value 需要進行過濾的值
- /www/wwwroot/www.hnpadz.com/Comm/MyFrame/Core/spModel.php on line 893
888.
}else{
889.
$fcondition = array($thelinker['fkey']=>$run_result[$thelinker['mapkey']]);
890.
}
891.
}
892.
if(TRUE == $thelinker['countonly'])$do_func = "findCount";
893.
894.
return spClass($thelinker['fclass'])->$do_func($fcondition, $thelinker['sort'], $thelinker['field'], $thelinker['limit'] );
}
895.
}
- /www/wwwroot/www.hnpadz.com/Comm/MyFrame/Core/spModel.php on line 757
752.
$thelinker['type'] = strtolower($thelinker['type']);
753.
if( 'find' == $func_name || 'findBy' == $func_name ){
754.
$run_result[$thelinker['map']] = $this->do_select( $thelinker, $run_result );
755.
}elseif( 'findAll' == $func_name || 'run' == $func_name ){
756.
foreach( $run_result as $single_key => $single_result )
757.
758.
$run_result[$single_key][$thelinker['map']] = $this->do_select( $thelinker, $single_result );
}elseif( 'create' == $func_name ){
759.
$this->do_create( $thelinker, $run_result, $func_args );
760.
}elseif( 'update' == $func_name ){
761.
$this->do_update( $thelinker, $func_args );
762.
}elseif( 'delete' == $func_name || 'deleteByPk' == $func_name ){
- /www/wwwroot/www.hnpadz.com/Action/comm.php on line 41
36.
//服務中心
37.
$this->ncat_jszc = spClass('m_ncat')->findAll(array('pid'=>4),'odnum DESC');
38.
//產品分類
39.
$this->pcat = spClass('m_pcat')->spLinker()->findAll(array('pid'=>1),'odnum DESC,id asc');
40.
//產品分類樹形結構
41.
42.
$this->pcat1 = spClass('m_pcat1')->spLinker()->findAll(array('pid'=>1),'odnum DESC,id asc');
//dump($this->pcat1);
43.
//產品分類
44.
$this->pcat69 = spClass('m_pcat')->spLinker()->findAll(array('pid'=>69),'odnum DESC,id asc');
45.
//問答分類
46.
$this->wdfl = spClass('m_wdfl')->findAll(null,'odnum ASC');
- /www/wwwroot/www.hnpadz.com/Action/comm.php on line 41
36.
//服務中心
37.
$this->ncat_jszc = spClass('m_ncat')->findAll(array('pid'=>4),'odnum DESC');
38.
//產品分類
39.
$this->pcat = spClass('m_pcat')->spLinker()->findAll(array('pid'=>1),'odnum DESC,id asc');
40.
//產品分類樹形結構
41.
42.
$this->pcat1 = spClass('m_pcat1')->spLinker()->findAll(array('pid'=>1),'odnum DESC,id asc');
//dump($this->pcat1);
43.
//產品分類
44.
$this->pcat69 = spClass('m_pcat')->spLinker()->findAll(array('pid'=>69),'odnum DESC,id asc');
45.
//問答分類
46.
$this->wdfl = spClass('m_wdfl')->findAll(null,'odnum ASC');
- /www/wwwroot/www.hnpadz.com/Comm/MyFrame/spFunctions.php on line 160
155.
}
156.
}
157.
if(FALSE != $has_define){
158.
$argString = '';$comma = '';
159.
if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = ', '; }
160.
161.
eval("\$GLOBALS['G_SP']['inst_class'][\$class_name]= new \$class_name($argString);");
return $GLOBALS['G_SP']["inst_class"][$class_name];
162.
}
163.
spError($class_name."類定義不存在,請檢查。");
164.
}
165.
- /www/wwwroot/www.hnpadz.com/Comm/MyFrame/spFunctions.php on line 15
10.
function spRun(){
11.
GLOBAL $__controller, $__action;
12.
// 對路由進行自動執行相關操作
13.
spLaunch("router_prefilter");
14.
// 對將要訪問的控制器類進行實例化
15.
16.
$handle_controller = spClass($__controller, null, $GLOBALS['G_SP']["controller_path"].'/'.$__controller.".php");
// 調用控制器出錯將調用路由錯誤處理函數
17.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
18.
eval($GLOBALS['G_SP']["dispatcher_error"]);
19.
exit;
20.
}
- /www/wwwroot/www.hnpadz.com/index.php on line 13
8.
require('config.php');
9.
//加載框架核心
10.
require(SP_PATH.'/SpeedPHP.php');
11.
require('functions.php');
12.
//執行應用
13.
14.
spRun();
?>