You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Courtail/index.php

26 lines
487 B

<?php
echo "<p>Coucou</p>";
$db = new PDO("sqlite:/etc/postfix/postfix.sqlite");
$db -> setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
try {
$res = $db -> query('SELECT * FROM postfix_alias_vitruels;');
print '<table>';
foreach ($res as $row) {
print '<tr><td>' . $row['courriel'] . '</td><td>' . $row['destination'] . '</td></tr>';
}
print '</table>';
}
catch(PDOException $e) {
print ("exception " . $e->getMessage());
}
?>