Update file journal.php
This commit is contained in:
parent
cb341b4284
commit
5818fb47aa
@ -57,9 +57,11 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) {
|
|||||||
$req->execute();
|
$req->execute();
|
||||||
$resultat = $req->fetchAll(PDO::FETCH_ASSOC);
|
$resultat = $req->fetchAll(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
|
$date = new Datetime($row['date'])
|
||||||
|
|
||||||
if ($resultat) {
|
if ($resultat) {
|
||||||
foreach($resultat as $row) {
|
foreach($resultat as $row) {
|
||||||
echo "<div class='article'><div><a href='?article=" . $row['ID'] . "'><h2>" . $row['titre'] . "</h2></a></div><div>" . $row['auteur'] . "</div><div>" . $row['date']->format('d/m/Y') . "</div></div>";
|
echo "<div class='article'><div><a href='?article=" . $row['ID'] . "'><h2>" . $row['titre'] . "</h2></a></div><div>" . $row['auteur'] . "</div><div>" . $date->format('d/m/Y') . "</div></div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user