这个mysql查询导致错误的原因是什么?

lam*_*ins 2 php mysql mysql-error-1064

mysql_query ("
  INSERT INTO items 
    (index, name, description, given_by, 
     cost_to_tcs, starting_bid, auction_type) 
  VALUES
    ('{$index_number}','{$name}','{$description}','{$donated_by}',
     NULL,'{$auction_type}','{$starting_bid}')
  ") 
  or die("3: " . mysql_error());
Run Code Online (Sandbox Code Playgroud)

错误:

3:您的SQL语法有错误; 查看与您的MySQL服务器版本对应的手册,以便在''index','name','description','given_by','cost_to_tcs','starting_bid','auct'附近的第1行使用正确的语法

谢谢你的帮助.

diE*_*cho 8

index是mysql保留关键字,index用(回退)``` 换行

INSERT INTO items 
 (`index`, `name`, `description`, `given_by`,
  `cost_to_tcs`, `starting_bid`, `auction_type`) 
Run Code Online (Sandbox Code Playgroud)

Reserve key words