Skip to content

Instantly share code, notes, and snippets.

@wboykinm
wboykinm / getjson.php
Created September 27, 2012 08:51
MySQL to geojson parser
<?php
header('Content-type: text/plain');
$username = "[user]";
$password = "[password]";
$hostname = "localhost";
$database = "[database]";
// Opens a connection to a mySQL server
$connection=mysql_connect ($hostname, $username, $password);