2021-12-10 20:22:06 +00:00
|
|
|
<!DOCTYPE html>
|
2021-12-10 23:53:23 +00:00
|
|
|
<?php
|
|
|
|
require_once('persistence.php');
|
|
|
|
$db = createDB();
|
|
|
|
?>
|
2021-12-10 20:22:06 +00:00
|
|
|
<html lang="ca">
|
|
|
|
<head>
|
2021-12-10 22:54:03 +00:00
|
|
|
<meta charset="utf-8"/>
|
|
|
|
<title>Guestbook</title>
|
2021-12-10 20:22:06 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2021-12-10 23:53:23 +00:00
|
|
|
<table border="1">
|
|
|
|
<?php
|
|
|
|
//storeMessage($db, 'Hola Dendy');
|
|
|
|
$test = getMessages($db);
|
|
|
|
foreach($test as $msg) {
|
|
|
|
echo('<tr>');
|
|
|
|
foreach($msg as $key => $value) {
|
|
|
|
echo("<td>$key: $value</td>");
|
|
|
|
}
|
|
|
|
echo('</tr>');
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</table>
|
2021-12-10 20:22:06 +00:00
|
|
|
</body>
|
|
|
|
</html>
|