Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbh = new PDO('mysql:host=localhost;dbname=reddit','root',"");
- foreach($dbh->query("SELECT id,title,user,subreddit,url from posts") as $row) {
- print_r($row);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement