Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $db = Database::connect();
- $boats = $db->prepare("SELECT * FROM båtar ORDER BY id ASC LIMIT ?, 20");
- $boats->bindParam(1, $min, PDO::PARAM_INT);
- $boats->execute();
- while($row = $boats->fetch()) {
- ?>
- <a href="/boat/<?php echo $row['id'] ?>">
- <div class="listitem">
- <h3>
- <?php echo htmlspecialchars($row['namn']) ?>
- </h3>
- </div>
- </a>
- <?php
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement