Re: RSS feeds from database + associated data (skip NULL in MySQL output)
$feed_array = array(); if ($db->num_rows($result)) { while ($cur_feed = $db->fetch_assoc($result)) $feed_array[] = $cur_feed['rssfeed']; } $feed = new SimplePie($feed_array);
If that doesn't work, do a print_r() of $feed_array.
Thanks. It doesn't produce results. Not sure how to "do a print_r()". I've tried this:
$feed_array = array();
if ($db->num_rows($result))
{
while ($cur_feed = $db->fetch_assoc($result))
$feed_array[] = $cur_feed['rssfeed'];
}
$memberfeeds = print_r($feed_array);
// Initialize some feeds for use.
$feed = new SimplePie();
$feed->set_feed_url(array(
$memberfeeds,
));
Only produces "Array ( )" in the page, which was to be expected.