- 最后登录
- 2012-4-6
- 在线时间
- 2 小时
- 个人主页
- 注册时间
- 2011-3-14
- 阅读权限
- 10
- 帖子
- 2
- 精华
- 0
- UID
- 1699

|
发表于 2011-3-19 01:19:06
|显示全部楼层
发信息出错。。
INSERT INTO win_win (username,uid,nickname,contents,atuser,refrom,repostid,commentto,ctime) VALUES ('shiguang','3','时光','feafdsafads','NULL','网站','NULL','NULL','1300468089')
执行错误: Incorrect integer value: 'NULL' for column 'repostid' at row 1
D:\freehost\shiguang1\web\SpeedPHP\Core\mysql.php on line 61
56. {
57. $this->arrSql[] = $sql;
58. if( $result = mysql_query($sql, $this->conn) ){
59. return $result;
60. }else{
61. spError("{$sql}<br />执行错误: " . mysql_error());
62. }
63. }
64.
65. /**
66. * 获取数据表结构
D:\freehost\shiguang1\web\SpeedPHP\Core\spModel.php on line 142
137. }
138. $col = join(',', $cols);
139. $val = join(',', $vals);
140.
141. $sql = "INSERT INTO {$this->tbl_name} ({$col}) VALUES ({$val})";
142. if( FALSE != $this->_db->exec($sql) ){ // 获取当前新增的ID
143. if( $newinserid = $this->_db->newinsertid() ){
144. return $newinserid;
145. }else{
146. return array_pop( $this->find($row, "{$this->pk} DESC",$this->pk) );
147. }
D:\freehost\shiguang1\web\model\lib_win.php on line 42
37. 'refrom' => $row['refrom'],
38. 'repostid' => $row['repostid'],
39. 'commentto' => $row['commentto'],
40. 'ctime' => time(),
41. );
42. $newid = parent::create($newrow);if(false == $newid)return false;
43.
44. // 获取话题,然后写入对应表
45. if( $topics = $this->gettopic($contents) ){spClass('lib_topic')->createAll($topics, $newid);}
46.
47. // 处理repostid,commentto的对应微博的repostsum和commentsum
D:\freehost\shiguang1\web\controller\wblog.php on line 173
168. 'uid'=>$_SESSION['winblognow']['uid'],
169. 'username'=>$_SESSION['winblognow']['username'],
170. 'nickname'=>$_SESSION['winblognow']['nickname'],
171. 'refrom'=>'网站'
172. );
173. spClass('lib_win')->create(array_merge($row,$addrow));
174.
175. spClass('lib_user')->remind($fromwin['uid'], $reminder_type); // 发送提醒
176. // 成功返回
177. $this->success('微博发布成功', $ref);
178. }
D:\freehost\shiguang1\web\SpeedPHP\SpeedPHP.php on line 89
84. eval($GLOBALS['G_SP']["dispatcher_error"]);
85. exit;
86. }
87.
88. // 执行用户代码
89. $handle_controller->$__action();
90.
91. // 控制器程序运行完毕,进行模板的自动输出
92. if(FALSE != $GLOBALS['G_SP']['view']['auto_display']){
93. $__tplname = $GLOBALS['G_SP']['view']['config']['template_dir']."/".
94. $__controller.$GLOBALS['G_SP']['view']['auto_display_sep'].
D:\freehost\shiguang1\web\index.php on line 11
6.
7. if( true != @file_exists(APP_PATH.'/config.php') ){require(APP_PATH.'/install.php');exit;}
8.
9. require(APP_PATH.'/model/functions.php');
10. $spConfig = require(APP_PATH."/config.php");
11. require(SP_PATH."/SpeedPHP.php"); |
|