Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $full="publicblog.php";
- $img_style="width:150px; height;250px;";
- echo '<div class="w3-row-padding w3-padding-16 w3-center" style="margin-top: 50px;" id="food">';
- while($row = mysqli_fetch_assoc($result))
- {
- echo '<div class="w3-quarter">';
- echo '<a href="'.$full.'" > <img src="'.$row['img_path'].'" style="'.$img_style.'"> </a>';
- echo "<h3>".$row['uname']."</h3>";
- echo "<p>".$row['body']."</p>" ;
- echo '</div>';
- $count++;
- }
- if($count%3 ==0){echo "<br>";}
- echo '</div>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement