UPDATE vn_prod SET views = 13228 WHERE id = '285html'
执行错误: Truncated incorrect DOUBLE value: '285html'
- /www/wwwroot/www.lylbqbc.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.lylbqbc.com/Comm/MyFrame/Core/spModel.php on line 301
296.
$value = $this->escape($value);
297.
$vals[] = "{$key} = {$value}";
298.
}
299.
$values = join(", ",$vals);
300.
$sql = "UPDATE {$this->tbl_name} SET {$values} {$where}";
301.
302.
return $this->_db->exec($sql);
}
303.
304.
/**
305.
* 替换数据,根据条件替换存在的记录,如记录不存在,则将条件与替换数据相加并新增一条记录。
306.
*
- /www/wwwroot/www.lylbqbc.com/Action/home.php on line 143
138.
if($this->cpsl == 1){
139.
header('HTTP/1.1 404 Not Found');
140.
$this->success('信息不存在!',spUrl('home','index'));
141.
}
142.
//本件产品详细信息
143.
144.
spClass('m_prod')->update(array('id'=>$this->spArgs('id')),array('views'=>$this->prow['views']+1));
$this->ppic = spClass('m_ppic')->findAll(array('prodid'=>$id)); //本件产品图片信息
145.
$this->prev = spClass('m_prod')->find("cid='$prow[cid]' AND id>'$id'",'id ASC'); //同分类上一件
146.
$this->next = spClass('m_prod')->find("cid='$prow[cid]' AND id<'$id'",'id DESC'); //同分类下一件
147.
$this->pcatrow = spClass('m_pcat')->find(array('id'=>$this->prow['cid']));
148.
$cid=$this->prow['cid'];
- /www/wwwroot/www.lylbqbc.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.lylbqbc.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();
?>