INSERT INTO weatherinfo (areaid,data,promptinfo) VALUES ('',NULL,0)
执行错误: Column 'data' cannot be null
- /www/wwwroot/web/www.tulouyiriyou.com/SpeedPHP/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/web/www.tulouyiriyou.com/SpeedPHP/Core/spModel.php on line 139
134.
}
135.
$col = join(',', $cols);
136.
$val = join(',', $vals);
137.
138.
$sql = "INSERT INTO {$this->tbl_name} ({$col}) VALUES ({$val})";
139.
140.
if( FALSE != $this->_db->exec($sql) ){ // 获取当前新增的ID
if( $newinserid = $this->_db->newinsertid() ){
141.
return $newinserid;
142.
}else{
143.
return array_pop( $this->find($row, "{$this->pk} DESC",$this->pk) );
144.
}
- /www/wwwroot/web/www.tulouyiriyou.com/include/main/weather.php on line 102
97.
// ============ $string = gettqinfo($areaid); // 调取天气api ===========
98.
$prompt = getpromptinfo($areaid);
99.
if(empty($find_weather['areaid']))
100.
{
101.
$addrow = array( 'areaid' => $areaid,'data' =>$string,"promptinfo" =>$prompt);
102.
103.
$find_demo = $weatherinfo->create($addrow);
}
104.
else
105.
{
106.
$conditions_wheather = array( 'areaid' => $areaid);
107.
$updatarow = array( 'data' =>$string,"promptinfo" =>$prompt);
- /www/wwwroot/web/www.tulouyiriyou.com/controller/main.php on line 991
986.
}
987.
public function news(){
988.
require('include/main/news.php');
989.
}
990.
public function weather(){
991.
992.
require('include/main/weather.php');
}
993.
public function repair(){
994.
require('include/main/repair.php');
995.
}
996.
public function products(){
- /www/wwwroot/web/www.tulouyiriyou.com/SpeedPHP/spFunctions.php on line 21
16.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
17.
eval($GLOBALS['G_SP']["dispatcher_error"]);
18.
exit;
19.
}
20.
// 路由并执行用户代码
21.
22.
$handle_controller->$__action();
// 控制器程序运行完毕,进行模板的自动输出
23.
if(FALSE != $GLOBALS['G_SP']['view']['auto_display']){
24.
$__tplname = $__controller.$GLOBALS['G_SP']['view']['auto_display_sep'].
25.
$__action.$GLOBALS['G_SP']['view']['auto_display_suffix']; // 拼装模板路径
26.
$handle_controller->auto_display($__tplname);
- /www/wwwroot/web/www.tulouyiriyou.com/index.php on line 325
320.
321.
require(SP_PATH."/SpeedPHP.php");
322.
323.
// 这里是入口文件全局位置
324.
import(APP_PATH.'/controller/basis.php'); // 需要先载入top控制器父类
325.
326.
spRun();
?>