add(); //adds one to the counter for that counted_item //strips the text include ('../functions/journal_strip_rss.php'); //gets image dimensions include('../functions/get_img_info.php'); $image = "../images/rss.gif"; $feed_image = "http://".WEB_PATH."/images/rss.gif"; $feed_image_title = $_SERVER['SERVER_NAME']." Journal"; $language = "en-us"; $feed_description = "The ".str_replace("www.", "", $_SERVER['SERVER_NAME'])." Site Last 20 Journals"; $feed_link = "http://".$_SERVER['SERVER_NAME']; $site = str_replace("www.", "", $_SERVER['SERVER_NAME']); $site = substr($site, 0, -4); $feed_title = "Last 20 ".$site." Journals"; $zone = "EST"; //eastern time EST, PST, etc //track feeds include ('../functions/track_info.php'); track_info('a_rss_request'); $pub_date = date('D, d M Y H:i:s', LOCAL_TIME); $pub_date = $pub_date." ".$zone; echo ''; ?> <? echo $feed_title; ?> en-us Copyright Elmwoodstrip <? echo $feed_image_title; ?> 0 AND public='Y' AND userName = user_name ORDER BY latest_entry DESC LIMIT 20;"; //get results from the mysql DB $select_users_result=mysql_query($select_users,CONNECTION); $num_rows=mysql_num_rows($select_users_result); $x = 0; while ($row=mysql_fetch_array($select_users_result)) { $userName[]=$row["userName"]; $x++; } //while for ($i=0;$i<$num_rows;$i++){ $journal_query="SELECT DATE_FORMAT(date, '%a, %d %b %Y %H:%i:%s'), date, blogTitle, blogID, blogEntry FROM `$userName[$i]` WHERE public='y' ORDER BY blogID DESC LIMIT 1"; $journal_query_result=mysql_query($journal_query,CONNECTION); while ($row=mysql_fetch_array($journal_query_result)) { $item_link = DEFAULT_PAGE."?u=".$userName[$i]; $link=DEFAULT_PAGE."?u=".$userName[$i]."&id=".$row["blogID"]; $title=ucwords($userName[$i])." - ".stripslashes($row["blogTitle"]); $title = str_replace("&", "and", $title); $title = htmlspecialchars($title); $description=j_strip($row["blogEntry"], $userName[$i]); $date=$row["DATE_FORMAT(date, '%a, %d %b %Y %H:%i:%s')"]; $date = $date." ".$zone; ?> <? echo $title; ?> ]]>