-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharticle.php
69 lines (57 loc) · 2.2 KB
/
article.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php require('actions/showArticleContent.php') ;
require('actions/reponseAction.php');
require('actions/showResponseAction.php');
?>
<!DOCTYPE html>
<html lang="en">
<?php include('includes/head.php');?>
<body>
<?php include('includes/navbar.php');?>
<br><br>
<div class="container">
<?php
if(isset($errorMsg)){echo $errorMsg;}
if(isset($question_date)){
?>
<section class="show-content">
<div class="container">
<h3><?= $question_description;?></h3>
<hr>
<?= $question_title;?>
<hr>
<?= $question_author.' '.$question_date;?>
</div>
</section>
<section class="show-reponse">
<form class="form-group" method="POST">
<div class="mb-3">
<label for="" class="form-label">Reponse</label>
<textarea name="reponse" id="" class="form-control"></textarea>
<button class="btn btn-dark" type="submit" name="validate">REPONDRE</button>
</div>
</form>
<?php
while($reponse = $allResponse->fetch()){
?>
<div class="container">
<div class="card">
<div class="card-header">
<?= $reponse['numC_author'] ;?>
</div>
<div class="card-body">
<blockquote>
<?= $reponse['content'];?>
</blockquote>
</div>
</div>
</div>
<?php
}
?>
</section>
<?php
}
?>
</div>
</body>
</html>