Multimedia | Milwaukee Neighborhood News Service
phpprint '<link rel="stylesheet" type="text/css" href="https://milwaukeenns.org/custom-css/photoEssay.css" /‘;
?>
Check out some of our latest videos.
php//load xml from flickr$vxml = simplexml_load_file('photo-essay/video-essay.xml');//echo "<pre“; var_dump($xml); echo “
“;
//loop through xml nodes
for ($v = 0; $v < sizeof($vxml->videoessay); $v++) {
//parse xml node
$vid = $vxml->videoessay[$v]->id;
$vurl =  $vxml->videoessay[$v]->url;
$vimage = $vxml->videoessay[$v]->image;
$vtitle = $vxml->videoessay[$v]->title;
$vlink = $vxml->videoessay[$v]->link;
$vdescription = $vxml->videoessay[$v]->description;
//create array and store data for each node
if ($videoEssayArray == false)	{
$videoEssayArray = array(array($vid, $vurl , $vimage , $vtitle , $vlink, $vdescription ));
} else array_push($videoEssayArray, array($vid, $vurl , $vimage , $vtitle , $vlink, $vdescription ));
};
//display a formatted list of results
echo ‘
‘);
}
echo ‘
‘;
//create content for links
for ($v = 0; $v < sizeof($videoEssayArray); $v++) {print_r('
‘.’
‘.$videoEssayArray[$v][5].’
View the original article
‘);
};
?>
php//load xml from flickr$xml = simplexml_load_file('photo-essay/photo-essay.xml');//echo "<pre“; var_dump($xml); echo “
“;
//loop through xml nodes
for ($i = 0; $i < sizeof($xml->photoessay); $i++) {
//parse xml node
$id = $xml->photoessay[$i]->id;
$url =  $xml->photoessay[$i]->url;
$image = $xml->photoessay[$i]->image;
$title = $xml->photoessay[$i]->title;
$link = $xml->photoessay[$i]->link;
$description = $xml->photoessay[$i]->description;
$width =  $xml->photoessay[$i]->width;
$height =  $xml->photoessay[$i]->height;
//create array and store data for each node
if ($photoEssayArray == false)	{
$photoEssayArray = array(array($id, $url , $image , $title , $link, $description, $width, $height ));
} else array_push($photoEssayArray, array($id, $url , $image , $title , $link, $description, $width, $height ));
};
//print_r(array_values($photoEssayArray));
//display a formatted list of results
echo ‘
‘.$photoEssayArray[$i][4].’
‘);
//create link
print_r(‘
‘);
}
echo ‘
‘;
//create content for links
for ($i = 0; $i < sizeof($photoEssayArray); $i++) {print_r('
‘.’
‘.$photoEssayArray[$i][5].’
View the original article
‘);
};
?>