Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Initialize the session
- if (session_status() == PHP_SESSION_NONE) {
- session_start();
- }
- require_once "config.php";
- $unique_code = $_SESSION["unique_code"];
- $stmt = $pdo->prepare("SELECT * FROM wishlist_items WHERE unique_code = :unique_code");
- $stmt->bindParam(":unique_code", $unique_code, PDO::PARAM_INT);
- $stmt->execute();
- $number_of_rows = $stmt->rowCount();
- ?>
- <center><button id="add" class="btn btn-primary" style="width: 960px">Add</button></center>
- <table id="user_data" align="center" class="table table-hover table-striped" style="width: 960px">
- <tr>
- <th>Prio</th>
- <th>Description</th>
- <th>Done</th>
- </tr>
- <?php
- while ($row = ($result = $stmt->fetch(PDO::FETCH_ASSOC))) {
- ?>
- <tr>
- <td><?php echo $row['page_order']; ?></td>
- <td><?php echo $row['description']; ?></td>
- <td><?php echo ($row['done'] ? "true" : "false"); ?></td>
- </tr>
- <?php
- }
- ?>
- </table>
- <?php
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement