ggdworkshop/participants.php
German Correa 379507e346 Crea la base de datos,
Funciona el registro (sin validar si existe)
Y mostar la lista de participantes
2017-12-01 21:27:32 -03:00

40 lines
1.0 KiB
PHP

<?php $root = realpath($_SERVER["DOCUMENT_ROOT"]);?>
<?php include_once 'header.php'; ?>
<?php include_once $root.'/db/db.php'; ?>
<div class="row">
<div id="content" class="col-xs-12 col-sm-8">
<div class="row">
<div class="col-xs-12">
<h1><strong>Participants</strong></h1>
<table class="table table-striped">
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Affiliation</th>
</tr>
</thead>
<tbody>
<?php
foreach($db->getAll() as $row){
echo "<tr>";
echo "<td> ".$row['nombre']." </td>";
echo "<td> ".$row['apellido']." </td>";
echo "<td> ".$row['afiliacion']." </td>";
echo "</tr>";
}
?>
</tbody>
</table>
</div>
</div>
</div>
<?php include_once 'sidebar.php'; ?>
<?php include_once 'footer.php'; ?>