Our Newsletter

load($targetFeed); $fullList = $newDoc->getElementsByTagName("item"); $counter = 0; foreach($fullList as $thisItem) { if ($counter >= $numFeeds) { break; } $values = $thisItem->getElementsByTagName("*"); $title = ""; $link = ""; $date = ""; $content = ""; foreach($values as $node) { if($node->nodeName == "title") {$title = $node->nodeValue;} //if($node->nodeName == "link") {$link = $node->nodeValue;} //if($node->nodeName == "pubDate") {$date = $node->nodeValue;} if($node->nodeName == "content:encoded") {$content = $node->nodeValue;} } if ($title != "") { echo "

"; if ($link != "") { echo ""; } echo $title; if ($link != "") { echo ""; } echo "

"; } if ($date != "") { echo "

" . date('F jS Y',strtotime($date)) . "

"; } if ($content != "") { echo "

" . $content . "

"; } $counter++; } ?>
220 SE 21st Street, Grand Rapids, MN 55744 USA
Dr. Mike Hagley Grand Rapids dentist (218) 326-3438 (218) 327-1475 smile@grdental.com