Update 2 files
- /html/news.php - /html/editpage.php
This commit is contained in:
parent
c99507552c
commit
9289853978
@ -124,7 +124,7 @@ if(isset($fichier)) {
|
||||
$req->execute();
|
||||
$resultat = $req->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
$date = new Datetime($row['date']);
|
||||
$date = new date($row['date']);
|
||||
|
||||
if ($resultat) {
|
||||
foreach($resultat as $row) {
|
||||
|
@ -58,7 +58,7 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) {
|
||||
$resultat = $req->fetchAll(PDO::FETCH_ASSOC);;
|
||||
|
||||
if ($resultat) {
|
||||
$date = new Datetime($resultat[0]['date']);
|
||||
$date = date($resultat[0]['date']);
|
||||
echo "<div class='article-info'><div class='article-id'>" . $resultat[0]['ID'] . "</div>";
|
||||
echo "<div class='article-titre'>" . $resultat[0]['titre'] . "</div>";
|
||||
echo "<div class='article-date'>" . $date->format('d/m/Y') . "</div>";
|
||||
@ -75,7 +75,7 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) {
|
||||
$req->execute();
|
||||
$resultat = $req->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
$date = new Datetime($row['date']);
|
||||
$date = new date($row['date']);
|
||||
|
||||
if ($resultat) {
|
||||
foreach($resultat as $row) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user