echo "<img src='img/commentBelowIcon.png' width='26' height='26' class='left' /><h3>Add Comment</h3>";
// The error happens here.
<?php
echo "<form action='inc/q/prof.php' method='post'>
<select id='courseInfoDD' name='courseID' tabindex='1'>";
?>
<?php
while ($row3 = $sth3->fetch(PDO::FETCH_ASSOC)) {
echo '<option>' . $row3['prefix'] . ' ' . $row3['code'] . '</option>';
}
?>
<?php
echo "</select>";
?>
That didn't fix it; it must been within this code above. I bolded the lines around line 90, where the error appears according to PHP.
I know it's basic, but I'm a bit of a newbie.