-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
40 lines (34 loc) · 927 Bytes
/
index.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
<?php require('actions/securityAction.php')?>
<!DOCTYPE html>
<html lang="en">
<?php include('includes/head.php') ?>
<body>
<?php include('includes/navbar.php')?>
<?php
require('actions/showQuestionsAction.php');
?>
<?php
while($question = $getAllQuestion->fetch()){
?>
<div class="container">
<div class="card">
<div class="card-header">
<a href="article.php?id= <?=$question['id'] ;?>"> <?= $question['description'] ;?></a>
<?=$question['date_pub'] ;?>
</div>
<div class="card-body">
<blockquote>
<?= $question['titre'];?>
</blockquote>
</div>
<div class="card-footer">
by <?=$question['num_author'] ;?>
</div>
</div>
<br><br>
</div>
<?php
}
?>
</body>
</html>