gpt4 book ai didi

PHP & MySQL : unexpected T_VARIABLE

转载 作者:行者123 更新时间:2023-11-29 01:08:16 26 4
gpt4 key购买 nike

<分区>

在 18 上获得意外的 T_VARIABLE,即 - 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'];
} ?>

有什么想法吗?

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com