This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center
6年前关闭。
在18上获取意外的T_变量,即-while($row=mysql_fetch_assoc($fetchCourses)){
<?php include("config.php"); ?>

<html>
<head>
    <!-- Style Sheets -->
    <link rel="stylesheet" href="stylesheets/reset.css" type="text/css" media=screen />
    <link rel="stylesheet" href="stylesheets/style.css" type="text/css" media=screen />
</head>
<body>

<?php

$fetchCourses = mysql_query("SELECT * FROM CourseMembers
                            LEFT JOIN Courses ON Courses.CourseID = CourseMembers.CourseID
                            WHERE CourseMembers.UserID = 1
                            ORDER BY Courses.CourseName ASC")

while ($row = mysql_fetch_assoc($fetchCourses)) {
    echo $row['CourseName'];
} ?>

有什么想法吗?

最佳答案

前一行缺少“;”。

09-11 19:02
查看更多