Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.56 KB | None | 0 0
  1. <?php
  2.  
  3. // Initialize the session
  4. if (session_status() == PHP_SESSION_NONE) {
  5.     session_start();
  6. }
  7.  
  8. require_once "config.php";
  9.  
  10. $unique_code = $_SESSION["unique_code"];
  11.  
  12. $columns = array('description');
  13.  
  14. $stmt = $pdo->prepare("SELECT * FROM wishlist_items");
  15. $stmt->execute();
  16. $number_of_rows = $stmt->rowCount();
  17.  
  18. while ($row = ($result = $stmt->fetch(PDO::FETCH_ASSOC))) {
  19. ?>
  20.     <td><?php echo $row['page_order']; ?></td>
  21.     <td><?php echo $row['description']; ?></td>
  22.     <td><?php echo ($row['done'] ? "yeet" : "kurk"); ?></td>
  23. <?php
  24. }
  25.  
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement