Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $query = "SELECT * FROM `portfolio` ORDER BY `pf_id` DESC";
- $result = mysqli_query($con, $query);
- $list = '';
- while ($row = mysqli_fetch_array($result))
- {
- //Linking the variables
- $id = $row["pf_id"];
- $title = $row["pf_title"];
- $desc = $row["pf_desc"];
- $pfimg = $row["pf_html"];
- $date = $row["pf_date"];
- $time = strtotime($date);
- $datemdy = date("F j, Y", $time);
- $datetime = date("g:i A", $time);
- $list .= '<a href="pfpiece.php?id='.$id.'">' . $pfimg . '</a>';
- }
- mysqli_close($con);
- ?>
- <div class="pf-container">
- <p><?php echo $list; ?></p>
- </div>
- <div class="pf-img-wrap"><img src="/uploads/portfolio_items/IMG/1.jpg"><div class="pf-img-title">2</div></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement