-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.php
44 lines (30 loc) · 853 Bytes
/
post.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
<?php
include_once "header.php";
if(isset($_GET['id'])){
$id = $_GET['id'];
} else {
$id = 0;
}
?>
<div class="user_details column">
<a href="<?php echo $userLoggedIn;?>"> <img src="<?php echo $user['profile_pic']?>" alt="Profile picture"> </a>
<div class="user_details_left_right">
<a href="<?php echo $userLoggedIn;?>">
<?php
echo $user['first_name'] . " " . $user['last_name'];
?>
</a><br>
<?php
echo "Posts: " . $user['num_posts'] . "<br>";
echo "Likes: " . $user['num_likes'];
?>
</div>
</div>
<div class="main_column column" id="main_column">
<div class="posts_area">
<?php
$post = new Post($con, $userLoggedIn);
$post->getSinglePost($id);
?>
</div>
</div>