<table class="table table-hover"> <thead> <tr> <th>First Name</th> <th>Last Name</th> <th>Email</th> <th>Suburb</th> <th>Rating</th> </tr> </thead> <tbody> <?php $guests = new Guest($db); $stmt = $guests->selectAllGroupSuburb(); while ($row_menuItem = $stmt->fetch(PDO::FETCH_ASSOC)) { extract($row_menuItem); echo "<tr>"; echo "<td>{$FirstName}</td>"; echo "<td>{$LastName}</td>"; echo "<td>{$Email}</td>"; echo "<td>{$Suburb}</td>"; echo "<td>{$Rating}</td>"; echo "<td><a class='btn btn-small btn-primary' data-toggle='modal' data-target='#editModal' data-whatever='{$Id}'>Edit</a></td>"; echo "</tr>"; } ?> </tbody> </table>