大家好,我是 php 和 mysql 的初学者,我在这里加入了 3 个表,但我的查询没有运行,因为它不正确。thres 是其中的语法错误。请帮忙,我会很感激:))
$result = mysql_query("SELECT courses.id AS cid,
courses.title,
courses.subjectsid,
subjects.id AS sid,
subjects.subjectname,
requestrecord.status
FROM courses,
subjects,
requestrecord
LEFTJOIN requestrecord
ON courses.id = requestrecord.coursesid
WHERE (courses.subjectsid = subjects.id )");