我把它放在一个 SQL 语句中:
WHERE course_num = '$course_details['course_num']'
term_cd = '$course_details['term_cd']'
term_year = '$course_details['term_year']'
course_title = '$course_details['course_title']'
units = '$course_details['units']'
并得到一个错误。因为这显然行不通,如何在 SQL 语句中索引变量?