SaeDEV2.2/CI3/application/views/films.php
2024-06-16 01:04:54 +02:00

28 lines
425 B
PHP

<h2>Films</h2>
<table>
<thead>
<tr>
<th>Titre</th>
<th>Année</th>
<th>Genre</th>
<th>Réalisateur</th>
</tr>
</thead>
<tbody>
<?php
foreach($films as $film){
echo "
<tr>
<td><a href='/~ghouar-t/TPCodeIgniter/CI3/index.php/Fiche/view/{$film['idFilm']}'>
{$film['titre']}</a></td>
<td>{$film['annee']}</td>
<td>{$film['genre']}</td>
<td>{$film['prenom']} {$film['nom']}</td>
</tr>";
}
?>