{'Events'}); $events = $json->{'Events'}; //var_dump($events); $eventname = $json->{'Name'}; $organizer = $json->{'Organizer'}; $headofficial = $json->{'HeadOfficial'}; $city = $json->{'City'}; $startdate = strtotime($json->{'StartDate'}); $enddate = strtotime($json->{'EndDate'}); echo("" . $eventname . " - Resultat"); ?> ' . $eventname . ' - Resultatlista'; echo '

Arrangör: ' . $organizer . '
'; echo 'Plats: ' . $city . '
'; if ($startdate == $enddate) echo 'Datum: ' . strftime('%F', $startdate) . '
'; else echo 'Datum: ' . strftime('%F', $startdate) . ' – ' . strftime('%F', $enddate) . '
'; echo 'Tävlingsledare: ' . $headofficial. '

'; foreach ($events as $event => $value) { $eventnumber = ($value->{'EventNumber'}); $eventname = ($value->{'EventName'}); $eventclass = ($value->{'EventClass'}); $eventremark = ($value->{'Remark'}); $file = 'Res_' . $eventnumber . '.html'; echo '

' . $eventname . ' ' . $eventremark . '

'; readfile($file); } //var_dump($events); foreach ($files as $filename) { // echo($filename); // readfile($filename); }//include 'Res_70.html'; //readfile('Res_100.html'); ?>