This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetComments.php
84 lines (54 loc) · 1.77 KB
/
getComments.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
// Post ID Abfragen und entsprechnde Posts aus der Datenbank holen
$com1 = $pdo->prepare('SELECT * FROM `comments` WHERE idPost = :idPost');
$com1->execute([':idPost' => $idOfPost]);
?>
<section class="mbr-section article content11 cid-rIyvAfga96" id="content11-12">
<div class="container">
<div class="media-container-row">
<div class="mbr-text counter-container col-12 col-md-8 mbr-fonts-style display-7">
<ul class = "Nicola-Ul">
<?php
foreach($com1->fetchAll() as $comment) {
$CommentCreator = $comment['created_by'];
$CommentConntent = $comment['comment'];
?>
<div class = "Nicola-Grey">
<li class = "Nicola-Comment "><strong>
<?php echo $CommentCreator ; ?>
</strong>
<?php echo $CommentConntent ; ?>
</li>
</div>
<?php
}
?>
</ul>
</div>
</div>
</div>
</section>
<?php
/*
$CreateDate = $beitrag[0]["created_at"];
$AutorOfPost = $beitrag[0]["created_by"];
$PostTitel = $beitrag[0]["post_titel"];
$PostInhalt = $beitrag[0]["post_inhalt"];
$picture = $beitrag[0]["picture"];
*/
/*
<section class="mbr-section article content11 cid-rIyvAfga96" id="content11-12">
<div class="container">
<div class="media-container-row">
<div class="mbr-text counter-container col-12 col-md-8 mbr-fonts-style display-7">
<ol>
<li><strong>Comment_Creator_Name</strong>-Comment Konnten</li>
<li><strong>Comment_Creator_Name</strong> -Comment Konntent</li>
<li><strong>Comment_Creator_Name</strong> -Comment Konntent</li>
</ol>
</div>
</div>
</div>
</section>
<section class="mbr-section form3 cid-rIyzkiAtCq" id="form3-16">
*/