Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
trash
/
vhost_www.art2t.fr_1669198987
/
htdocs
/
pages
/
_unused
/
/srv/data/trash/vhost_www.art2t.fr_1669198987/htdocs/pages/_unused/actualite.php
<?php $idNews = $_GET['id']; $stmt=$dbh->prepare("SELECT * FROM news WHERE id=?"); // on prépare notre requête $stmt->execute(array($idNews)); $news = $stmt->fetch(); if(empty($news)) header('Location: actualites'); ?> <h1><?=$news->title?></h1> <p class="text-muted"> Ajouté le <?=date("d/m/Y",strtotime($news->update_at))?> <?php if(!empty($news->author)){ if(!empty($news->email)) echo "par <a href='mailto:$news->email'>$news->author</a>"; else echo "par $news->author"; } ?> </p> <br> <?=$news->content?> <hr> <?php require "actualite_comment.php"; ?>