当正斜杠选择数据时,Mysql错误1064.PHP [关闭]

I try to execute this query with PHP. but mysql server is giving to error like this.

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 'index='CEA/EO/MA/0001'' at line 1. What is the reason for that?

My PHP code part is

$index = ($_POST['index']);
$sql = "SELECT * FROM results WHERE index='CEA/EO/MA/0001'";
$query = mysql_query($sql) or die(mysql_error());

index is a reserved keyword in MySQL. If you're going to name a column index you wrap it in backticks:

$sql = "SELECT * FROM results WHERE `index`='CEA/EO/MA/0001'";

Refer to the following page for the full list of MySQL reserved words: