-
Notifications
You must be signed in to change notification settings - Fork 0
/
articles.php
50 lines (42 loc) · 1.47 KB
/
articles.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width" />
<title>Article</title>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body>
<div class="body">
<!-- Header -->
<?php include('header.html'); ?>
<?php
include('config/connect.php');
$req = $bdd->query("SELECT * FROM Article WHERE id='".$_GET['ID']."'");
// Affichage des articles
while ($donnees = $req->fetch())
{
?>
<div class="article textboxarticleinhist">
<p class="t3">
<?php echo htmlspecialchars($donnees['Title']); ?>
<em class="date">le <?php echo $donnees['C_date']; ?></em>
</p>
<p>
<?php
echo nl2br(htmlspecialchars($donnees['Text_article']));
?>
<br />
<img src=<?php echo $donnees['Picture']; ?>>
</p>
</div>
<?php
}
$req->closeCursor();
?>
<!-- Footer -->
<?php include('footer.html'); ?>
</div>
</body>
</html>