Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $sql = "SELECT img FROM mytable LIMIT 0,3";
- $result = mysqli_query($conn, $sql);
- $total = mysqli_num_rows($result);
- $i=0;
- while($row = $result->fetch_assoc()) { //this line
- echo $row['img'];
- $i++; }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement