我正试图将数据存储到数据库中。如果我用下面的代码无法在数据库中存储日期
$sql="INSERT INTO rohit(content,tags,uniquefield,required)
VALUES('$l','$y','$z','$t')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
它正在运行,但是当我再增加一个字段,则它给错误检查MySQL的句法
$sql="INSERT INTO rohit(content,tags,uniquefield,required,numeric)
VALUES('$l','$y','$z','$t','$n')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
我已经在数据库中定义的所有字段。什么可能是可能的错误
什么是错误信息? – 2012-07-20 14:00:16