Files
geodb/geoapi/insert/createPlaceNewsInsert.php
2013-08-14 15:05:29 +02:00

9 lines
234 B
PHP

<?php
$file = "placealias.json";
$json = json_decode(file_get_contents($file),true);
foreach ($json as $row) {
echo "INSERT INTO `placeservice`(`pid`, `sid`, `request`) VALUES (".$row["pid"].",2,'/p/".$row["alias"]."');\n";
}
?>