Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once("connect.php);
- $stmt = $pdo-prepare(SELECT * FROM tableName");
- $stmt-execute();
- while($row = $stmt-fetch())
- {
- //DB Fieldnames in square brackets within the single quotes
- $name = $row['name'];
- $quote = $row['fav_quote'];
- //Variables here must match above
- echo "<b><i>$quote</i></b><br><p>$name</p>";
- }
- ?>
Add Comment
Please, Sign In to add comment