Teach Yourself Java 2 in 21 Days, Third Edition http://www.cadenhead.org/book/java21days/ Updates to the Web site of the book Teach Yourself Java 2 in 21 Days, Third Edition by Rogers Cadenhead and Laura Lemay. en-us http://backend.userland.com/rss PHP/$phpversion END; // loop through the array pulling database fields for each item for ($i = 0; $i < mysql_num_rows($result1); $i++) { @$row = mysql_fetch_array($result1); $title = "Day ".cleanText($row["chapter"])." Update"; $link = "http://www.cadenhead.org/book/java21days/chapter.php/". cleanText($row["chapter"]); $description = cleanText($row["description"]); $guid = "tag:cadenhead.org,2004-05-20:java21days.".$row["dex"]; $pubDate = date("r", strtotime($row["dateadded"])); // display an item ECHO << $title $link $description $pubDate $guid END; } ECHO << END; ?>