-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparticipate.php
More file actions
112 lines (76 loc) · 2.74 KB
/
participate.php
File metadata and controls
112 lines (76 loc) · 2.74 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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
include 'db_connection.php';
$select_questions = $conn->prepare("SELECT * FROM `questions`");
$select_questions->execute();
$questions = $select_questions->fetchAll(PDO::FETCH_ASSOC);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Watch Video</title>
<!-- Font Awesome CDN Link -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">
<!-- Custom CSS File Link -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="description">
<section class="description-details">
<div class="tutor">
<?php foreach ($questions as $question) : ?>
<div class="question-row">
<p><strong>Subject:</strong> <?= $question['subject']; ?></p>
<p><strong>Topic:</strong> <?= $question['topic']; ?></p>
<p><strong>Description:</strong> <?= $question['description']; ?></p>
</div>
<?php endforeach; ?>
</div>
</section>
</div>
<section class="comments">
<h1 class="heading">Add a Comment</h1>
<form action="" method="post" class="add-comment">
<input type="hidden" name="content_id" value="<?= $get_id; ?>">
<textarea name="comment_box" required placeholder="Write your comment..." maxlength="1000" cols="30"
rows="10"></textarea>
<input type="submit" value="Add Comment" name="add_comment" class="inline-btn">
</form>
<h1 class="heading">User Comments</h1>
<div class="show-comments">
<div class="box">
<h3>Winner Winner</h3>
<span>Best Comment</span>
</div>
</div>
<div class="show-comments">
<div class="box">
<h3>Winner Winner</h3>
<span>Best Comment</span>
</div>
</div>
<div class="show-comments">
<div class="box">
<h3>Winner Winner</h3>
<span>Best Comment</span>
</div>
</div>
<div class="show-comments">
<div class="box">
<h3>Winner Winner</h3>
<span>Best Comment</span>
</div>
</div>
<div class="show-comments">
<div class="box">
<h3>Winner Winner</h3>
<span>Best Comment</span>
</div>
</div>
</section>
<!-- Custom JS File Link -->
<script src="js/script.js"></script>
</body>
</html>