little help needed.
I have three tablets in SQL databases by the name of
1 countries
2 states
3 cities
I am using api-ip to get country name, states, cities , however, sometimes the specific city or state does not exist in the main database, some specific countries the state is also missing i.e.
[status] => success
[country] => Singapore
[countryCode] => SG
[region] =>
[regionName] =>
[city] => Singapore
[zip] =>
[lat] => 1.28009
[lon] => 103.851
[timezone] => Asia/Singapore
[isp] => Cloudflare, Inc.
[org] => Cloudflare, Inc.
[as] => AS13335 Cloudflare, Inc.
[query] => 172.69.135.73
if someone can write me shortcode in PHP to find out which place is missing in the database and how to insert new record automatically in the table?
some experts? any help? Thanks for your prompt assistance.