提交表单时出现以下错误:
Can't added a new post. Incorrect integer value: '' for column 'aid' at row 1
php代码:
$insert = mysql_query("INSERT INTO brt_articles VALUES( '', '$post_title', '$des',
'$date', '$org_date')");
if($insert)
{
echo "<font color=green>Successfully added a new article.</font>";
header("Refresh:3; url=allbrtarticle.php");
}
else
{
echo "<font color=red>Can't added a new post</font>" .
mysql_error();
}
在我的本地主机中没关系。但是在服务器中为什么它给我一个错误信息?