<thead> <tr> <th class="color-code">#</th> <th>Name</th> <th>Subject</th> <!-- <th>Date Uploaded</th> --> <th>Uploaded</th> <th>Rating</th> <th>Comments</th> <th>Reviewer</th> </tr> </thead> <tbody> <?php $controller = new LEController(); $LEs = $controller->getLEHistory($name, $dev); $_SESSION['histles'] = serialize($LEs); $LE = current($LEs); $count = count($LEs); $i = 0; while ($LE != NULL) { echo '<tr>'; echo '<td>' . ($i + 1) . '</td>'; if ($i + 1 != $count) { echo '<td><a href="' . $path . $LE->getFilepath() . '">' . $LE->getName() . '</a></td>'; } else { echo '<td>' . $LE->getName() . '</a></td>'; } echo '<td>' . $LE->getSubject() . '</td>'; // echo '<td> '.$LE->getDateUploaded().'</td>'; echo '<td>' . $LE->getDateUploaded() . '</td>';