Created
September 13, 2015 22:02
-
-
Save lorenmh/543a9724798ebb836e18 to your computer and use it in GitHub Desktop.
This file contains 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 | |
$pdo=new PDO("mysql:dbname=markers;host=127.0.0.1","root",""); | |
$stmt = $pdo->query("SELECT * FROM markers"); | |
$results = $stmt->fetchAll(PDO::FETCH_ASSOC); | |
echo json_encode($results); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment