Advertisement
Sparkster

Untitled

Jul 23rd, 2013
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. <?
  2.     $sql = "SELECT * FROM cards";
  3.     foreach ($pdo->query($sql) as $row) {
  4.         echo '<tr><td>' . $row['name'] . '</td><td>' . $row['rarity'] . "★" . '</td><td>' . "<img src=upload/{$row['img']} />" . '</td></tr>';
  5.         }
  6. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement