Exemplo n.º 1
0
                <li class="active"><a href="fontend/home.php">Home</a></li>
                <li class="active"><a href="fontend/aboutus.php">About us</a></li>
                <li class="active"><a href="#">Help</a></li>
            </ul>
        </div>
    </div>
    <div class="row">
        <div class="col-md-3">
        </div>
        <div class="col-md-6">
            <div class="well"><h2 align="center"> <?php 
echo toUpperCase($fontend_object->authorName($user_id));
?>
 </h2></div>
            <?php 
$posts = $fontend_object->authorPosts($user_id);
if ($posts->num_rows > 0) {
    while ($row = $posts->fetch_assoc()) {
        ?>
                    <div class="well">
                        <h2 style="" class="form-control">Title:<b><?php 
        echo $row['post_title'];
        ?>
</b> &nbsp;&nbsp;Written on &nbsp;<?php 
        echo $row['posting_time'];
        ?>
 </h2>
                        <h2 style="" class="form-control">Category:<b><?php 
        echo $row['category_name'];
        ?>
</b></h2>