在mysql中,插入一条新记录,需要插入自动增加的ID字段吗?如果需要,ID自己增加不就没有意义了吗?You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '14:28:06 )' at line 1这是什么错误呢?code:function add_reply( $usname,$articleID,$replyID,$messages,$time){
$add_reply =" INSERT INTO message VALUES ( $usname,$articleID,$replyID,$messages,$time )";
$result_add_reply =mysql_query($add_reply) or die("出错" . mysql_error());
}
add_reply( $usname,$articleID,$replyID,$messages,$time) ;
写错了吗?
$add_reply =" INSERT INTO message VALUES ( $usname,$articleID,$replyID,$messages,$time )";
$result_add_reply =mysql_query($add_reply) or die("出错" . mysql_error());
}
add_reply( $usname,$articleID,$replyID,$messages,$time) ;
写错了吗?
出错Incorrect integer value: '' for column 'Id' at row 1