You have an error in your SQL syntax; check the manual that corresponds to your MySQL server versio$sql="insert into 'test1'('name','date','text') values('$name','$date','$liuyanneirong')";if(mysql_query($sql)){if(mysql_affected_rows() >= 1 )echo 'in

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/22 03:40:46
YouhaveanerrorinyourSQLsyntax;checkthemanualthatcorrespondstoyourMySQLserverversio$sql="insertinto''t

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server versio$sql="insert into 'test1'('name','date','text') values('$name','$date','$liuyanneirong')";if(mysql_query($sql)){if(mysql_affected_rows() >= 1 )echo 'in
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server versio
$sql="insert into 'test1'('name','date','text') values('$name','$date','$liuyanneirong')";
if(mysql_query($sql))
{
if(mysql_affected_rows() >= 1 )
echo 'insert ok!';
else
echo mysql_error();
}
else
{
echo mysql_error();
}

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server versio$sql="insert into 'test1'('name','date','text') values('$name','$date','$liuyanneirong')";if(mysql_query($sql)){if(mysql_affected_rows() >= 1 )echo 'in
1,对于mysql中的 表名 和字段名是不可以使用 单引号的,要使用`
2,test1是否存在,及字段及类型是否正确,插入的值和字段的个数或类型一一对应
3,好像你没有conn连接啊
修改如下
//没有看到你的数据库conn链接啊
@$conn = mysql_connect("yourHost","yourUserID","yourPassword");
$sql="insert into `test1` (`name`,`date`,`text`) values ('$name','$date','$liuyanneirong')";
//mysql_query 执行时使用conn
if(mysql_query($sql,@$conn))
{
if(mysql_affected_rows() >= 1 )
echo 'insert ok!';
else
echo mysql_error();
}
else
{
echo mysql_error();
}

This is an error message.You have failed in some A Database Error Occurred Error Number:1064 You have an error in your SQL syntax; check the manual有知道的请给我翻译下, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server.运行一个程序时来出现这样的问题:连接数据库成功You have an error in your SQL syntax; check the manual that corresponds to your MySQL se You have an important place in my MySQL Error: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 'Arial','sans-serif' lang=EN-US>2)&nb' at line 1 MySQL Errno:1064 Message:MySQL Query Error本地调试 there is an error in processing your You have an error in your SQL syntax; check the manual that corresponds to your MySQL server versio$sql=insert into 'test1'('name','date','text') values('$name','$date','$liuyanneirong');if(mysql_query($sql)){if(mysql_affected_rows() >= 1 )echo 'in HTTP Status 500 - Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrjava.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use 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 '' at line 1php+mysql+mysqladmin If you feel you have reached this page in error, please contact the web site owner什么意思 mysql> grant all privileges on *.* to root @’%’ identified by '12345678' with grant option;ERROR 1064 (42000):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 ' In this case,you have an edge over him. An error occurred in the upload.Try again An Error in the Story of Cinderella阅读答案 如何解决“Server Error in '/' Application.”Server Error in '/' Application.--------------------------------------------------------------------------------Runtime Error Description:An application error occurred on the server.The current custom have you an orange? 英语翻译The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator,[email protected] and inform them of the time the error occurred,and anything you might have 英语翻译There is one error:The declaration of c in line 6 conflicts with the function parameter c.Some compilers have been seen to flag line 24 as an error,saying it conflicts with the declaration in line 20.This should not be an error,as the sco