Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once 'connection/connection.php';
- $query = mysqli_query($conn,"SELECT * FROM (SELECT * FROM `craftmaster` ORDER BY cid DESC LIMIT 0 , 3) t ORDER BY cid ASC;");
- ?>
- <?php
- while($row = mysqli_fetch_array($query))
- {?>
- <div class="col m4">
- <div class="card">
- <div class="card-image small">
- <a href="view_craft?id=<?php echo $row['cid']; ?>">
- <img src="user/img/craftimage/<?php echo $row['c_img']?>" class="responsive-img" style="height: 200px; width: :200px;">
- <h3 class="grid-element-title"><?php echo $row['ctitle']?></h3>
- </a>
- </div>
- </div>
- </div>
- <?php }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement