hi
need little help displaying xml data from two website
need to display data like this
1-website a
2-website b
3-website a
4-website b
i am using this code
can any one tell me how i can display two xml data from different websites
i am using this
what i have to do that this can display date in same foreach loop
function getFeedAll() {
$content = file_get_contents("weblink");
$x = new SimpleXmlElement($content);
echo "<ul>";
foreach($x->channel->item as $entry) {
echo "
<li>
<a href='$entry->link' title='$entry->title' target='_new'> " . $entry->title . "</a>
</li>";
}
echo "</ul>";
}