PHP &

0 Cevap php

while ($row = mysql_fetch_assoc($fetchCourses)) { - 18 beklenmedik T_VARIABLE Başlarken

<?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'];
} ?>

Herhangi bir düşünce?

0 Cevap