<?php $reservations = new Reservations(); $list = $reservations->getList()[0]; ?> <table class="table-hovered tableSearch"> <thead> <tr> <th>Nombre</th> <th>Email</th> <th>Teléfono</th> <th>Ciudad</th> <th>Excursión</th> <th width="30px"></th> <th width="30px"></th> </tr> </thead> <tbody> <?php foreach ($list as $key => $value) { if (!empty($value)) { ?> <tr> <td><?php echo $value['holder_name']; ?> </td> <td><?php echo $value['holder_email']; ?> </td>