?> </span></center><br> </h1> </div> </div> <!-- Div to display the comparison table--> <div class ="comparebox"> <!-- Div to the table seperately--> <div class="tble"><table columnspacing="70"> <tr> <th>Grade</th> <th>Common Course</th> <th>Grade</th> </tr> <?php //get the mutual course details of the two students from the database $mutualCourseDetails = getMutualCourseDetailsTwoStudents($login_session, $studentId); foreach ($mutualCourseDetails as $row) { echo "<tr>"; echo "<td>" . $row['mine'] . "</td>"; echo "<td>" . $row['code'] . ' - ' . $row['title'] . "</br></td>"; echo "<td>" . $row['his'] . "</td>"; echo "</tr>"; } echo "</table></div>"; ?> </div> </div> </body> </html>
?> <h1><span class="data"><?php echo "<center>" . $studentTwoName; ?> </span></center><br> </h1> </div> </div> <!-- This is the table to show comparisons --> <div class ="comparebox"> <table columnpacing='50'> <tr> <th>Grade</th> <th>Common Course</th> <th>Grade</th> </tr> <?php $record = getMutualCourseDetailsTwoStudents($studentOneId, $studentTwoId); foreach ($record as $row) { echo "<tr>"; echo "<td>" . $row['mine'] . "</td>"; echo "<td>" . $row['code'] . ' - ' . $row['title'] . "</td>"; echo "<td>" . $row['his'] . "</td>"; echo "</tr>"; } ?> </table> </div> </body> </html>