Monday, 7 March 2011

Small Update - Adding update and last location

I have added the latest location and place from the blogloc RSS feed by grabbing the latest update from the feed

Screenshot: (below 'MyDataFlows')



Code that produces the date and location update:

foreach ($locationxml->entry->title as $locationitem) {
 if($locationcounter < 1){
     $locationcounter=$locationcounter+1;
}  
 //grabs the latest feed for location update, date and place
 print "
    $location$locationitem'
"; print " "; // if the counter reaches 1 it will break the function as I only want to grab the first function if($locationcounter==1){ break; } }

No comments:

Post a Comment