SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php | |
| 2 | $dbh = new PDO('mysql:host=localhost;dbname=reddit','root',"");
| |
| 3 | - | $dbh->query($result="SELECT id,title,user,subreddit,url from posts"); |
| 3 | + | print_r($dbh->query("SELECT id,title,user,subreddit,url from posts"));
|
| 4 | - | foreach ($select->query($result) as $row) {
|
| 4 | + |