forked from b3rking/kgb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
56 lines (45 loc) · 1.31 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
// include classes and objects
use src\config\Database;
use src\objects\Note;
use src\objects\User;
include_once "src/config/Database.php";
include_once "src/objects/user.php";
include_once "src/objects/note.php";
// get database connection
$database = new Database();
$db = $database->getConnection();
$user = new User($db);
$note = new Note();
$list_user = $user->all();
$page_title = "KGB Team - official website!";
include "includes/header.php";
?>
<section class="body-container">
<div class="kgb_members">
<div class="kgb_members_header">
<h2>our actual members</h2>
</div>
<?php
while ($res = $list_user->fetch(PDO::FETCH_ASSOC)) :
extract($res);
?>
<div class="user">
<div class="user-data">
<img src="../img/j.png" alt="username - profile pic">
<div class="user-data_names">
<p class="fullname"><?php echo $fullname; ?></p>
<p class="username">@<?php echo $username; ?></p>
</div>
</div>
<div class="link">
<a href="account.php?id=<?php echo $id; ?>">his diary</a>
</div>
</div>
<?php endwhile ?>
</div>
<div class="recent_post">
<h2>recent post from membersssss</h2>
</div>
</section>
<?php include "includes/footer.php"; ?>