<?php } ?> </ul> <table cellpadding="5" cellspacing="5" with="500" align="center" class="zebra-striped"> <tbody> <?php $placement = null; $has_offers = false; $histograms = false; $i = null; $format = 'json'; //Get All Active APIs $citygrid = new citygridplaces($publishercode); $search = $citygrid->srch_places_latlong($what, $type, $lat, $lon, $radius, $page, $rpp, $sort, $format, $placement, $has_offers, $histograms, $i); foreach ($search as $place) { $total_hits = $place->total_hits; $first_hit = $place->first_hit; $last_hit = $place->last_hit; $page = $place->page; $maxpage = $total_hits / $rpp; $rpp = $place->rpp; foreach ($place->locations as $location) { $featured = $location->featured; $public_id = $location->public_id; $name = $location->name; $address = $location->address; $street = $address->street; $city = $address->city; $state = $address->state;