DESCRIBE vn_prod
執(zhí)行錯誤: Got error 28 from storage engine
- /www/wwwroot/www.szwmsj.com.cn/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 />執(zhí)行錯誤: " . mysql_error());
}
64.
}
65.
66.
/**
67.
* 返回影響行數(shù)
- /www/wwwroot/www.szwmsj.com.cn/Comm/MyFrame/Drivers/mysql.php on line 26
21.
*
22.
* @param sql 執(zhí)行的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.szwmsj.com.cn/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.
* 構造函數(shù)
86.
*
- /www/wwwroot/www.szwmsj.com.cn/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.szwmsj.com.cn/Comm/MyFrame/Core/spModel.php on line 283
278.
* 此參數(shù)的格式用法與create的$row是相同的。在符合條件的記錄中,將對$row設置的字段的數(shù)據進行修改。
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.szwmsj.com.cn/Action/home.php on line 523
518.
}
519.
//同名分類圖片
520.
$this->pcatname = spClass('m_pcat')->find(array('pcatname'=>$this->prow['pname']));
521.
$this->prodList = spClass('m_prod')->spLinker()->findAll(array('cid'=>$this->pcatname['id']),'odnum desc,id DESC');
522.
//本件產品詳細信息
523.
524.
spClass('m_prod')->update(array('id'=>$this->spArgs('id')),array('views'=>$this->prow['views']+1));
$this->ppic = spClass('m_ppic')->findAll(array('prodid'=>$id)); //本件產品圖片信息
525.
$this->prev = spClass('m_prod')->find("cid='$prow[cid]' AND id>'$id'",'id ASC'); //同分類上一件
526.
$this->next = spClass('m_prod')->find("cid='$prow[cid]' AND id<'$id'",'id DESC'); //同分類下一件
527.
$cid=$this->prow['cid'];
528.
- /www/wwwroot/www.szwmsj.com.cn/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.
// 路由并執(zhí)行用戶代碼
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.szwmsj.com.cn/index.php on line 13
8.
require('config.php');
9.
//加載框架核心
10.
require(SP_PATH.'/SpeedPHP.php');
11.
require('functions.php');
12.
//執(zhí)行應用
13.
14.
spRun();
?>