Skip to content

Instantly share code, notes, and snippets.

@obieito
obieito / getjson.php
Created December 1, 2017 08:36 — forked from wboykinm/getjson.php
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);