Код: Выделить всё
$url = 'https://www.datastro.eu/api/explore/v2.1/catalog/datasets/orbits-for-current-comets-in-the-mpc-database/records?order_by=h%20ASC' ;
$data = file_get_contents($url);
$comets = json_decode($data, true);
if ($comets === null) {
die("Error decoding JSON data.");
}
//echo '
'; print_r($comets); echo '';
Код: Выделить всё
designation_and_name
orbit_type
...
...
Код: Выделить всё
new DataTable('#myTable');
Подробнее здесь: https://stackoverflow.com/questions/783 ... a-from-url
Мобильная версия