Php 获取此错误#1064

Php 获取此错误#1064,php,Php,当我插入表格empinfo时 查询插入表 $sql="INSERT INTO empinfo(EmpName,Add,MobileNo)values('$EmpName','$Add','$MobileNo')"; 我得到一个错误: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to

当我插入表格empinfo时

查询插入表

$sql="INSERT INTO empinfo(EmpName,Add,MobileNo)values('$EmpName','$Add','$MobileNo')";
我得到一个错误:

#1064 - 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 'Add,MobileNo)values('jaimin','Baroda','123')' at line 1 
Add
是一个简单的选项。如果要将其用作标识符,请使用反勾号将其环绕(对于标识符,您通常应该这样做):


Add
是保留字。如果要将其用作列名,则必须将其放在反勾号中:

$sql="INSERT INTO empinfo(EmpName,`Add`,MobileNo)values('$EmpName','$Add','$MobileNo')";

@外星人先生,他在用这个,他把错误信息放在问题里。@Barmar啊,很抱歉我错过了`
$sql="INSERT INTO empinfo(EmpName,`Add`,MobileNo)values('$EmpName','$Add','$MobileNo')";