<?php
$connect = mysqli_connect("远程服务器","账号","密码","表单");
$filename = "myjson.json";
$data = file_get_contents($filename);
$array = json_decode($data,true);
foreach ($array as $row){
$sql = "INSERT INTO paobu(name,qianmi) VALUE('".$row[name]."','".$row[qianmi]."')";
mysqli_query($connect,$sql);
}
echo "data insert";
?>