SELECT * FROM categories WHERE category_code = 'case-studies-kentang' AND language = 'zh_cn' ORDER BY category_id LIMIT 1 執(zhí)行錯(cuò)誤
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/Drivers/sqlite.php on line 183
178.
179.
$result = $this->db->query($sql);
180.
181.
if($result===false)
182.
//echo "查詢出錯(cuò)!{$sql}";
183.
184.
JError("{$sql} 執(zhí)行錯(cuò)誤");
185.
$this->lastResult = $result;
186.
return $result;
187.
}
188.
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/Drivers/sqlite.php on line 62
57.
*/
58.
public function getArray($sql)
59.
{
60.
$this->arrSql[] = $sql;
61.
62.
63.
$result = $this->exec($sql);
//make sure the result is valid
64.
if($result=== false || $result===NULL)
65.
return NULL; // error
66.
if(!is_object($result)) // no rows returned
67.
return array();
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/MVC/JModel.php on line 134
129.
}elseif(trim($this->pk)!=''){
130.
$sort = "ORDER BY {$this->pk}";
131.
}
132.
$sql = "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
133.
if(null != $limit)$sql = $this->_db->setlimit($sql, $limit);
134.
135.
return $this->_db->getArray($sql);
}
136.
137.
/**
138.
* 過濾轉(zhuǎn)義字符
139.
*
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/MVC/JModel.php on line 90
85.
* @param sort 排序,等同于“ORDER BY ”
86.
* @param fields 返回的字段范圍,默認(rèn)為返回全部字段的值
87.
*/
88.
public function getOne($conditions = null, $sort = null, $fields = null)
89.
{
90.
91.
if( $record = $this->getAll($conditions, $sort, $fields, 1) ){
return array_pop($record);
92.
}else{
93.
return FALSE;
94.
}
95.
}
- /www/wwwroot/www.ccpv.net.nc/modules/categories/categories.php on line 47
42.
$cond['category_code'] = $category_id;
43.
}
44.
$cond['language'] = $language;
45.
46.
$categories = JLoadClass('categories');
47.
48.
if($category = $categories->getOne($cond)) {
if($category['category_type'] == 'links' && $category['link_url']) {
49.
$this->redirect($category['link_url']);
50.
}
51.
else if($category['category_type'] == 'models') {
52.
if(!$tpl) {
- /www/wwwroot/www.ccpv.net.nc/JedooPHP/JFunctions.php on line 31
26.
eval($GLOBALS['G_JCONFIG']["dispatcher_error"]);
27.
exit;
28.
}
29.
30.
// 執(zhí)行用戶代碼
31.
32.
$__handle_controller->$__actionFunc();
33.
//顯示前執(zhí)行自定義代碼
34.
JInject("before_display");
35.
36.
// 控制器程序運(yùn)行完畢,進(jìn)行模板的自動(dòng)輸出
- /www/wwwroot/www.ccpv.net.nc/index.php on line 68
63.
if(count($server_info) > 1) {
64.
$server_domain = $server_info[count($server_info)-2];
65.
define('DOMAIN', $server_domain);
66.
}
67.
68.
69.
JStart();
?>