Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php
  2. $full="publicblog.php";
  3. $img_style="width:150px; height;250px;";
  4. echo '<div class="w3-row-padding w3-padding-16 w3-center" style="margin-top: 50px;" id="food">';
  5. while($row = mysqli_fetch_assoc($result))
  6. {
  7. echo '<div class="w3-quarter">';
  8. echo '<a href="'.$full.'" > <img src="'.$row['img_path'].'" style="'.$img_style.'"> </a>';
  9. echo "<h3>".$row['uname']."</h3>";
  10. echo "<p>".$row['body']."</p>" ;
  11. echo '</div>';
  12. $count++;
  13. }
  14. if($count%3 ==0){echo "<br>";}
  15. echo '</div>';
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement