-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaps_display.php
More file actions
29 lines (28 loc) · 828 Bytes
/
Copy pathmaps_display.php
File metadata and controls
29 lines (28 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
require_once('db_constants.php');
require_once('check_connected.php');
$bdd = new PDO('mysql:host=' . DB_HOST . ';dbname=' . DB_NAME . ';charset=utf8', DB_USERNAME, DB_PASSWORD);
$request = $bdd->query('SELECT * FROM ' . TABLE_MAPS . ' ORDER BY `display_name`');
?>
<h2>Cartes</h2>
<table class="table">
<tr>
<th>Actions</th>
<th>ID</th>
<th>Nom</th>
<th>Description</th>
<th>Fichier map</th>
</tr>
<?php
while ($row = $request->fetch()) {
?>
<tr>
<td><a href="maps_add.php?id=<?php echo $row['id']; ?>" class="modify_map">Modifier</a><a href="maps_delete.php?id=<?php echo $row['id']; ?>" class="delete_map">Supprimer</a></td>
<td><?php echo $row['name']; ?></td>
<td><?php echo $row['display_name']; ?></td>
<td><?php echo $row['description']; ?></td>
<td><?php echo $row['map']; ?></td>
</tr>
<?php
} ?>
</table>