<!-- if the user isnt logeed in, redirect to login page-->
		You are not logged in! 
		<br>
		<a href = "index.html">Login</a>
	<?php 
}
?>
<tr>
<td> 

<?php 
// getch the all the posts,comments,likes from the DB for that user id
$ps1 = new Post_persist();
$reslt = $ps1->getPostByUserId($_SESSION['curruser']);
$us1 = new UserPersist();
$urw = $us1->getUserById($_SESSION['curruser']);
$user = $urw['user'];
foreach ($reslt as $row1) {
    ?>
	<div class="w3-container w3-padding-32 w3-teal">
		<b><?php 
    print $user;
    ?>
 says:</b> <br/>
		<?php 
    print $row1['time'];
    ?>
	</div>
	<section class="w3-container w3-border"> 
		<p>
		<?php