"; $limit = 10; $db = mysql_connect($DATABASE_HOST, $DATABASE_USER, $DATABASE_PASSWORD); mysql_select_db($DATABASE_NAME, $db); $sql = "SELECT DATE_FORMAT(EntryDate,'%Y.%m.%d'),Body,Link,EntryID FROM diary ORDER BY EntryDate DESC LIMIT $limit"; $ret = mysql_query($sql, $db); if ($ret) { $myrow = mysql_fetch_array($ret); while ($myrow) { $date = $myrow[0]; $body = $myrow[1]; $link = $myrow[2]; $id = $myrow[3]; $myrow = mysql_fetch_array($ret); $body = strip_tags($body,'

'); if (!isset($latest)) { $latest = $date; } echo " $date http://www.stealthboy.com/?EntryID=$id http://www.stealthboy.com/?EntryID=$id $date "; } } mysql_close($db); echo "stealtboy.com rss feed http://www.stealthboy.com/ stealthboy.com rss feed $latest en-us "; echo "";