<?php require_once 'functions.inc.php'; $yql_query = "select * from geo.places where text='" . $geo_location . "'"; $country = getJSON_for_YQL($yql_query);
<?php require_once 'functions.inc.php'; $yql_query = "select * from html where url='http://www.last.fm/tag/" . $location . "/tracks' and xpath='//table[@class=\"candyStriped chart\"]/tbody/tr'"; $tracks = getJSON_for_YQL($yql_query);
<?php require_once 'functions.inc.php'; $yql_query = "select * from html where url='http://www.last.fm/tag/" . $location . "/artists?page=" . $page . "' and xpath='//div[@class=\"skyWrap\"]/ul/li'"; $artists = getJSON_for_YQL($yql_query);
<?php require_once 'functions.inc.php'; $yql_query = "select * from html where url='http://www.last.fm/tag/" . $location . "/artists?page=1' and xpath='//a[@class=\"lastpage\"]'"; $nextpage = getJSON_for_YQL($yql_query);