5,16d4 < < $altsuffix = str_replace(" ", "%20", " AND indicator_id = 'BAR.PRM.SCHL.3539' "); // average years of primary schooling, 35-39, total < $alttitle = "Worldbank Data ... Average Years of Primary Schooling, 35-39, Total"; < $alttsuff = "data"; < $altthing = "data"; < $altthingtwo = "results->data"; < $suff = "countries"; < $yesh1 = " "; < $thing = "country"; < $thw = ""; < $thingtwo = "results"; < $suffix = ""; 18,20d5 < $ititle = " ... Worldbank Countries"; < if (isset($_POST['noh1'])) $yesh1 = ""; < if (isset($_GET['noh1'])) $yesh1 = ""; 23,29d7 < if (isset($_POST['mode'])) $suffix = str_replace(" ","%20",$_POST['mode'] . $altsuffix); < if (isset($_GET['mode'])) $suffix = str_replace(" ","%20",$_GET['mode'] . $altsuffix); < if ($suffix != "") $suff = $alttsuff; < if ($suffix != "") $ititle = $alttitle; < if ($suffix != "") $thing = $altthing; < if ($suffix != "") $thingtwo = $altthingtwo; < 33,35d10 < < date_default_timezone_set('London/England'); < $date = date('d/m/Y h:i:s a', time()) . " GMT"; 37,38c12 < $pageContent = file_get_contents("https://query.yahooapis.com/v1/public/yql?q=SELECT%20*%20FROM%20worldbank." . $suff . "%20WHERE%20country_id%20%3D%20'" . $selname . "'%20" . $suffix . "&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback="); < --- > $pageContent = file_get_contents("https://query.yahooapis.com/v1/public/yql?q=SELECT%20*%20FROM%20worldbank.countries%20WHERE%20country_id%20%3D%20'" . $selname . "'&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback="); 40,50d13 < if ($ititle == $alttitle) { < $thw = " style='height:1400px;overflow:scroll;' "; < $postsuff = explode(',"content":"', $pageContent); < if (sizeof($postsuff) > 1) { < $ecountry = explode('"', $postsuff[sizeof($postsuff) - 1]); < $ititle = "Worldbank Data ... Average Years of Primary Schooling in " . str_replace("+", " ", str_replace("+d%27", " d", urlencode($ecountry[0]))) . ", 35-39, Total"; < $date = ""; < } < } < < //echo $pageContent; 55c18 < // if (!is_null(eval("$" . "json_output->query->results->" . $thing))) { --- > if (!is_null($json_output->query->results->country)) { 56a20,21 > date_default_timezone_set('London/England'); > $date = date('d/m/Y h:i:s a', time()); 58,81c23,27 < if ($yesh1 != "") $yesh1 = "
| " . $stuff . "'> | |||
| ";
< echo " colspan=1 align='center'>" . str_replace("margin-top:-90px;","align:top;",$stuff . $pstuff) . "'> "; < } else { < echo ">"; < echo ""; < echo " | ";
< echo "";
< }
---
> echo "" . $event->name . " ... Worldbank Countries ... " . $date . " GMT";
> echo "
|