DESCRIBE vn_wenda
執行錯誤: Got error 28 from storage engine
- /www/wwwroot/www.yunzmei.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.yunzmei.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.yunzmei.com/Comm/MyFrame/Drivers/mysql.php on line 81
76.
*
77.
* @param tbl_name 表名稱
78.
*/
79.
public function getTable($tbl_name)
80.
{
81.
82.
return $this->getArray("DESCRIBE {$tbl_name}");
}
83.
84.
/**
85.
* 構造函數
86.
*
- /www/wwwroot/www.yunzmei.com/Comm/MyFrame/Core/spModel.php on line 372
367.
* 按表字段調整適合的字段
368.
* @param rows 輸入的表字段
369.
*/
370.
private function __prepera_format($rows)
371.
{
372.
373.
$columns = $this->_db->getTable($this->tbl_name);
$newcol = array();
374.
foreach( $columns as $col ){
375.
$newcol[$col['Field']] = $col['Field'];
376.
}
377.
return array_intersect_key($rows,$newcol);
- /www/wwwroot/www.yunzmei.com/Comm/MyFrame/Core/spModel.php on line 283
278.
* 此參數的格式用法與create的$row是相同的。在符合條件的記錄中,將對$row設置的字段的數據進行修改。
279.
*/
280.
public function update($conditions, $row)
281.
{
282.
$where = "";
283.
284.
$row = $this->__prepera_format($row);
if(empty($row))return FALSE;
285.
if(is_array($conditions)){
286.
$join = array();
287.
foreach( $conditions as $key => $condition ){
288.
$condition = $this->escape($condition);
- /www/wwwroot/www.yunzmei.com/Action/home.php on line 831
826.
header('HTTP/1.1 404 Not Found');
827.
import(APP_PATH.'/404.html');
828.
exit();
829.
}
830.
if(!$id = intval($this->spArgs('id'))) $this->error('缺少必要參數!');
831.
832.
spClass('m_wenda')->update(array('id'=>$this->spArgs('id')),array('views'=>$this->wenda['views']+1));
$this->wdfl = spClass('m_wdfl')->find(array('id'=>$this->wenda['cid']));
833.
$this->zjda = spClass('m_huida')->find("cid='$id' AND zjda=1",'id ASC');
834.
$condition = "cid = '$id' and zjda=0 and zhuangtai='顯示'";
835.
$this->qtda = spClass('m_huida')->findAll($condition,'id DESC');
836.
$this->xgtj = spClass('m_wenda')->findAll(null,'hdgs DESC',null,4);
- /www/wwwroot/www.yunzmei.com/Comm/MyFrame/spFunctions.php on line 32
27.
}else{
28.
spClass('m_conf')->update(array('id'=>1),array('yuefen'=>date('Y-m')));
29.
}
30.
}
31.
// 路由并執行用戶代碼
32.
33.
$handle_controller->$__action();
// 控制器程序運行完畢,進行模板的自動輸出
34.
if(FALSE != $GLOBALS['G_SP']['view']['auto_display']){
35.
$__tplname = $__controller.$GLOBALS['G_SP']['view']['auto_display_sep'].
36.
$__action.$GLOBALS['G_SP']['view']['auto_display_suffix']; // 拼裝模板路徑
37.
$handle_controller->auto_display($__tplname);
- /www/wwwroot/www.yunzmei.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();
?>