UPDATE vn_news SET views = 9665 WHERE id = '99html'
执行错误: Truncated incorrect DOUBLE value: '99html'
- /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 49
44.
if($this->cpsl == 1){
45.
header('HTTP/1.1 404 Not Found');
46.
$this->success('信息不存在!',spUrl('home','index'));
47.
}
48.
//本篇新闻详细信息
49.
50.
spClass('m_news')->update(array('id'=>$this->spArgs('id')),array('views'=>$this->nrow['views']+1));
$this->prev = spClass('m_news')->find("cid='$nrow[cid]' AND id>'$id'",'id ASC'); //同分类上一篇
51.
$this->next = spClass('m_news')->find("cid='$nrow[cid]' AND id<'$id'",'id DESC'); //同分类下一篇
52.
$this->ncatrow = spClass('m_ncat')->find(array('id'=>$this->nrow['cid']));
53.
$cid=$this->nrow['cid'];
54.
//当前位置开始
- /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();
?>