[wd_asp elements=’search’ ratio=’100%’ id=1]

Soap – Football

11th August 2014

Php - Miscellaneous

php codehaven

enable soap!
This produces a table of goal scorers…

0 && (int) $_POST['topn'] <= 20){ $topn = (int) $_POST['topn']; $client = new SoapClient("http://footballpool.dataaccess.eu/data/info.wso?wsdl"); $result = $client->TopGoalScorers(array('iTopN' => $topn));
// Note that $array contains the result of the traversed object structure
$array = $result->TopGoalScorersResult->tTopGoalScorer;

print "

";

foreach($array as $k=>$v){
print "

";
}

print "

Rank Name Goals
" . ($k+1) . " " . $v->sName . " " . $v->iGoals . "

";
}
else {

?>

How long should your topscorers list be? (Choose a digit between 1 and 20).