hello everyone. im not a professional PHP programmer. but im practicing some skill working with an api( using php to call and display data that is stored in json on my localhost(wampserver).
my codes are these:
<?php
$url = " $get= file_get_contents($url);
$decode= json_decode($get, true);
echo $decode['ico']['live']['name'];
?>
when i run it the error does:
Notice: Undefined index: name in C:\wamp64\www...
please can someone tell me what i have done wrong,or what i have to do. what i wanted is to display the datas in tabular manner.
thank you
my codes are these:
<?php
$url = " $get= file_get_contents($url);
$decode= json_decode($get, true);
echo $decode['ico']['live']['name'];
?>
when i run it the error does:
Notice: Undefined index: name in C:\wamp64\www...
please can someone tell me what i have done wrong,or what i have to do. what i wanted is to display the datas in tabular manner.
thank you