Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Horsegame - Horses</title>
- </head>
- <body>
- <main class="container">
- <a href="/">Home</a> |
- <a href="/horses.php">Horses</a> |
- <a href="/logout.php">Logout</a>
- <h1>Horses</h1>
- <?php if (!empty($horses)) : ?>
- <table>
- <tr>
- <th>ID</th>
- <th>Name</th>
- <th>Age</th>
- <th>Gender</th>
- <th>Color</th>
- </tr>
- <?php foreach ($horses as $horse) : ?>
- <tr>
- <td><?= $horse['id'] ?></td>
- <td><?= $horse['name'] ?? 'Unnamed' ?></td>
- <td><?= $horse['age'] ?></td>
- <td><?= $horse['gender_name'] ?></td>
- <td><?= $horse['color_name'] ?></td>
- </tr>
- <?php endforeach; ?>
- </table>
- <?php endif; ?>
- </main>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement