SELECT * FROM vn_wdfl ORDER BY odnum ASC
执行错误: MySQL server has gone away
- /www/wwwroot/hntyxx.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/hntyxx.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/hntyxx.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/hntyxx.com/Action/comm.php on line 46
41.
$this->pcat1 = spClass('m_pcat1')->spLinker()->findAll(array('pid'=>1),'odnum DESC,id asc');
42.
//dump($this->pcat1);
43.
//j解决方案
44.
$this->pcat106 = spClass('m_pcat')->spLinker()->findAll(array('pid'=>106),'odnum DESC,id DESC',null,8);
45.
//问答分类
46.
47.
$this->wdfl = spClass('m_wdfl')->findAll(null,'odnum ASC');
//产品列表
48.
$this->pbproduct = spClass('m_prod')->spLinker()->findAll(array('cid'=>1),'odnum DESC,id asc');
49.
//不收录列表页
50.
$this->pcat_al = spClass('m_pcat')->findAll(array('pid'=>8),'odnum DESC');
51.
//单页标题
- /www/wwwroot/hntyxx.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/hntyxx.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/hntyxx.com/index.php on line 14
9.
//加载框架核心
10.
require(SP_PATH.'/SpeedPHP.php');
11.
//require('icopylock.com.php');
12.
require('functions.php');
13.
//执行应用
14.
15.
spRun();
?>