</div> <div class="medium-12 columns field" style="padding: 0;"> <h5 style="text-align: center;">Leerlingen</h5> <table style="width: 100%; margin:0;"> <tr> <th width="80%">Naam</th> <th>Examenjaar</th> </tr> <?php require_once 'resources/includes/MySQL_Manager.php'; $mysql = new MySQL_Manager(); try { $mysql->connect(); $results = $mysql->getSubs(); $mysql->closeConnection(); while ($row = mysql_fetch_row($results)) { echo "<tr>"; echo "<td>{$row['0']} {$row['1']}</td>"; if ($row[2] != 0) { echo "<td style=\"text-align: center\">{$row['2']}</td>"; } else { echo "<td style=\"text-align: center\"></td>"; } echo "</tr>"; } } catch (\Exception $e) { echo $e->getMessage(); } ?>