-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmy-questions.php
More file actions
39 lines (33 loc) · 1.18 KB
/
my-questions.php
File metadata and controls
39 lines (33 loc) · 1.18 KB
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
<?php
require('forum/actions/users/securityAction.php');
require('forum/actions/questions/myQuestionsAction.php');
?>
<!DOCTYPE html>
<html lang="en">
<?php include('forum\includes\head.php'); ?>
<body>
<?php include('forum\includes\navbar.php'); ?>
<div class="container">
<br><br>
<?php
while ($question = $getAllMyQuestions->fetch()) {
?>
<div class="card">
<h5 class="card-header">
<a href="article.php?id=<?= $question['id']; ?>">
<?= $question['titre'] ?>
</a>
</h5>
<div class="card-body">
<p class="card-text"><?php echo $question['description'] ?></p>
<a href="article.php?id=<?= $question['id']; ?>" class="btn btn-primary">Accéder à la question</a>
<a href="edit-question.php?id=<?= $question['id']; ?>" class="btn btn-warning">Modifier la question</a>
<a href="forum/actions/questions/deleteQuestionAction.php?id=<?= $question['id']; ?>" class="btn btn-danger">Supprimer la question</a>
</div>
</div>
<?php
}
?>
</div>
</body>
</html>