Can anyone tell me why this php code is not pulling the righ
Posted: Fri Sep 23, 2005 4:32 pm
PHP Code:
require_once './rss/rss_fetch.inc';
$url = 'http://www.****.com/forum/e ... 8,17,23,27' ;
$rss = fetch_rss($url);
if ( $rss and !$rss->ERROR) {
foreach ($rss->items as $item ) {
echo ' <table class="tborder" cellspacing="0" cellpadding="3" width="100%">';
echo ' <tr> ';
echo ' <td class="thead"> ';
echo ' ' . $item[title] . ' ';
echo ' </td> ';
echo ' </tr> ';
echo ' <tr> ';
echo ' <td class="tcat"> ';
echo ' . ]Discuss this topic on our Political Forums ';
echo ' </td> ';
echo ' </tr> ';
echo ' <tr> ';
echo ' <td class="alt1"> ';
echo ' ' . $item[description] .' ';
echo ' </td> ';
echo ' </tr> ';
echo ' </table>
';
// echo '
. ]' . $item[title] . '<br / >';
// echo 'Publish Date: ' . $item[pubdate] . ' <br / >';
// echo $item[ description ] . ' </p>' ;
}
} else {
echo 'RSS Error: ' . $rss->ERROR . ' <br / >
' ;
}
It outputs the image below.
Should it not output the thread content?
require_once './rss/rss_fetch.inc';
$url = 'http://www.****.com/forum/e ... 8,17,23,27' ;
$rss = fetch_rss($url);
if ( $rss and !$rss->ERROR) {
foreach ($rss->items as $item ) {
echo ' <table class="tborder" cellspacing="0" cellpadding="3" width="100%">';
echo ' <tr> ';
echo ' <td class="thead"> ';
echo ' ' . $item[title] . ' ';
echo ' </td> ';
echo ' </tr> ';
echo ' <tr> ';
echo ' <td class="tcat"> ';
echo ' . ]Discuss this topic on our Political Forums ';
echo ' </td> ';
echo ' </tr> ';
echo ' <tr> ';
echo ' <td class="alt1"> ';
echo ' ' . $item[description] .' ';
echo ' </td> ';
echo ' </tr> ';
echo ' </table>
';
// echo '
. ]' . $item[title] . '<br / >';
// echo 'Publish Date: ' . $item[pubdate] . ' <br / >';
// echo $item[ description ] . ' </p>' ;
}
} else {
echo 'RSS Error: ' . $rss->ERROR . ' <br / >
' ;
}
It outputs the image below.
Should it not output the thread content?