[ Found a solution! I will post the code tomorrow. Anyways, thanks again for helping me out. :) ]
This is my code for displaying all of the posts in my blog. But I'm trying to display three different posts (in one row) and it's not working. I've already checked out some of the similar problems regarding to this but it's only for arranging the position of the image like this: align 3 images in same row with equal spaces?
Check out this screenshot for more details: IMG2
Php code:
<?php
$query = "SELECT * FROM posts WHERE post_category_id=1";
$select_all_posts_query = mysqli_query($connection, $query);
while($row = mysqli_fetch_assoc($select_all_posts_query)){
$post_id = $row['post_id'];
$post_title = $row['post_title'];
$post_author = $row['post_author'];
$post_date = $row['post_date'];
$post_image = $row['post_image'];
$post_content = $row['post_content'];
?>
Note: It's only one row because it automatically display all the posts with that same format as I declare from the php code above.
<div class="container">
<div class="row">
<div class="block col-sm-4 col-sm-4 col-sm-4">
<img class="img-rounded img-responsive center" src="images/<?php echo $post_image?>">
<a href="post.php?p_id=<?php echo $post_id; ?>"><h4><?php echo $post_title?></h4></a>
<p><span class ="glyphicon glyphicon-time"></span> Posted on <?php echo $post_date?> | by <?php echo $post_author?></p>
<p align="justify"><?php echo $post_content?></p>
<a href="#" class="btn btn-default" role="button">Read More</a>
<p> </p>
</div>
</div>
<?php } ?>
</div>