Exemplo n.º 1
0
    }
} else {
    ?>
                <!--echo "<script>alert('No post for selected category.')</script>";-->
                <div class="well">
                    <h3 align="center">No public post </h3>
                </div>
            <?php 
}
?>
        </div>
        <div class="col-md-3 col-sm-3">
            <div class="well">
                <h3 align="text" style="color: #0085a1">List of categories</h3>
                <?php 
$categories = $fontend_object->getCategory();
if ($categories->num_rows > 0) {
    while ($row = $categories->fetch_assoc()) {
        ?>
                        <a href="category_wise_posts.php?id=<?php 
        echo $row["category_id"];
        ?>
" class="form-control"> <?php 
        echo $row["category_name"];
        ?>
 <a>
                        <?php 
    }
}
?>
            </div>