</div> <div class="span9"> <div class="thumbnail-header"> <span class="cat_header">Overview</span> </div> <img alt="overview" title="Graphical Overview Coming Soon" src="img/chart_sample.jpg" style="width: 100%; height: 100%"> </div> </div> <div class="row"> <div class="span12"> <div class="thumbnail-header"> <span class="cat_header">My Posts</span> </div> <table class="category_table" cellpadding="10" cellspacing="0"> <?php $post = getUserPost($uid); $counter = 4; if (countPost($uid) < 1) { echo "<center><h3>No post found!</h3><h2><small>Millions of buyers are waiting for you.</small></h2>\n\t\t\t\t\t\t\t<a class=\"btn btn-success\" href=\"post.php\" title=\"Sell your product\" >Post New Ad</a>\n\t\t\t\t\t\t\t</center>"; } while ($row = mysqli_fetch_array($post)) { $title = substr($row['Post_title'], 0, 35); if (strlen($row['Post_title']) > 35) { $title = $title . "..."; } if ($counter == 4) { echo "<tr>"; } ?> <td width="20%" valign="top">
<?php include 'db-connection.php'; require 'posts.php'; session_start(); $user_id = $_SESSION['user_id']; $posts = getUserPost($user_id); echo json_encode($posts);