category as $category) { if ($cat == $category->catid){ $catid = $category->catid; $catnumber = $category->catnum; $catname = $category->catname; foreach ($category->location as $loc) { if ($building == $loc->varid){ $locnumber = $loc->number; }} } } //print $catname; $location['.$number'] = $sxe->xpath('/tour/category ['.$catnumber.']/location'); //the above states that in the current category each location can be described as location[0], location[1], location[2], etc. ?>
' . $catname . ''; ?>

Campus Photo Tour

Image of the <?php print $building; ?> building

alt; } ?>

map2;} else print 'http://www.uvm.edu/map/?Page=MAP&Building=' . $loc->map;} } ?>">map of showing location of <?php foreach ($location['.$number'] as $loc) { if ($building == $loc->varid){ print $loc->name;}} ?>  in the UVM campus varid){ print '

' . htmlentities($loc->name) . '

' . '

What happens here –' . htmlentities($loc->whathappens->text) . '

'; } } ?>