add some inster scripts

This commit is contained in:
stubbfel
2013-08-14 15:05:29 +02:00
parent 208547a909
commit 8438b526fe
4 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<?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";
}
?>