stanford88
New Member
I have a couple of websites that use a feedparser.The feedparser is dynamic; I select certain feeds that go to a mysql db.By keywords the items title, date, source, description etc. result in a feedparser.php fileIt updates as soon as the page is opened or renewed. It works very good. Below you find the code of feedparser.phpNow I would like to make a dynamic rssfeed of the items that the parser shows on the website. I made a start but I am not sure how to put in the php into the xml. It looks simple since there are not many variables in the xml, but I dotn get it to work. Anyone that can guide me in this one? Info needed, please ask me. Many thanks!Feedparser: \[code\]<?php require "includes/update.php";?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled Document</title><link href="http://stackoverflow.com/questions/14086992/css/style.css" rel="stylesheet" type="text/css" /></head><body><div class="feeds_container"><div class="feeds_header">LAATSTE NIEUWS BAG & BGT</div><div class="feeds_list"><?php foreach ($feeds as $feed){ $feedinfo=json_decode($feed['data']);?><div class="feed_element"><?php if($feedinfo->image&&$feedinfo->image!=''){ ?><span class="feed_image"><img width="80" src="http://stackoverflow.com/questions/14086992/<?php echo $feedinfo->image; ?>" /></span><?php }?><span class="feed_title"><a href="http://stackoverflow.com/questions/14086992/<?php echo $feedinfo->link;?>" title="<?php echo $feedinfo->link;?>" target="_blank"><?php echo $feedinfo->title ?></a><br /></span><span class="feed_date"><?php echo $feed['channel_title']?></a> (<?php echo date("d-m-y H:i", $feedinfo->timestamp) ?>)</span><span class="feed_description"><?php echo limitText($feedinfo->description,$description_limit) ?></span></div><div class="clear"></div><?php }?></div></div></body></html>\[/code\]