Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $sql = "SELECT * FROM cards";
- foreach ($pdo->query($sql) as $row) {
- echo '<tr><td>' . $row['name'] . '</td><td>' . $row['rarity'] . "★" . '</td><td>' . "<img src=upload/{$row['img']} />" . '</td></tr>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement