-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost.php
More file actions
42 lines (31 loc) · 867 Bytes
/
post.php
File metadata and controls
42 lines (31 loc) · 867 Bytes
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
<?php
include("includes/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']; ?>"></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_post']. "<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>