Created
March 16, 2015 20:44
-
-
Save fabriziomachado/7663044f51109f21e224 to your computer and use it in GitHub Desktop.
teste de conexão com PDO/Mysql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dbh=new PDO("mysql:dbname=onlinemarket;host=172.17.0.32", "root", "root"); | |
foreach($dbh->query('SELECT * from listings') as $row) | |
{ | |
print_r($row); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment