[Solved] How can i insert the json data into different mysql tables?

[ad_1]

Do the following

foreach($array as $row){
  $query = "INSERT INTO Cities values('".$row['id']."','".$row['city']."','".$row['state']."' )" ;
  $res = mysql_query($query);
 }

[ad_2]

solved How can i insert the json data into different mysql tables?