rss/html
Hej.Er der en der kan se hvordan nedenstående script kan udskrive i 2 rækker og 5 kolonner.
Som det er nu skrive de 10 rækker i en kolonne.
// output as HTML
print ("");
if (isset($rss_channel["IMAGE"])) {
print ("<a href=\"" . $rss_channel["LINK"] . "\" target=\"_blank\"><img border=\"0\" src=\"" . $rss_channel["IMAGE"]["URL"] . "\" align=\"middle\" alt=\"" . $rss_channel["IMAGE"]["TITLE"] . "\"></a> <font size=\"5\">" . $rss_channel["TITLE"] . "</font><br><br>");
} else {
print ("<font size=\"3\">10 nyeste indlæg</font><br><br>");
}
print ("<i>" . $rss_channel["DESCRIPTION"] . "</i><br><br>");
if (isset($rss_channel["ITEMS"])) {
if (count($rss_channel["ITEMS"]) > 0) {
for($i = 0;$i < count($rss_channel["ITEMS"]);$i++) {
print ("\n<table width=\"100%\" border=\"1\"><tr><td width=\"100%\"><a href=\"" . $rss_channel["ITEMS"][$i]["LINK"] . "\" target=\"_blank\"><h4>" . $rss_channel["ITEMS"][$i]["TITLE"] . "</h4></a></b>");
print ("<i><span class=rss>" . html_entity_decode($rss_channel["ITEMS"][$i]["DESCRIPTION"]) . "</span></i>");
print ("</td></tr></table><br>");
}
} else {
print ("<b>Der er intet nyt.</b>");
}
}
print ("");