';echo "";echo "Ghana Olympics Committee";echo "This the RSS feed";echo " Live FM Ghana http://ghanaolympic.org/template/images/05/logo.png 100px 100px ";echo "http://ghanaolympic.org";echo "".$lastpost."";echo "".$lastpost.""; $event_SQL="SELECT * FROM curve_articles LIMIT 0,30"; $result = mysql_query($event_SQL); $num_row=@mysql_num_rows($result); $num=@mysql_num_rows($result); if($num>0){ while($row=@mysql_fetch_array($result)){ $html=preg_replace('/]*>(.*)<\/p[^>]*>/i', '$1', $row["content1"]); $i=$i+1; $spot = strpos($html, 'src="', strpos($html, '', $spot)+1; $TextWithOutImg = substr($html,0,$spot).substr($html,$spot2); if($i % 2 == 0) { $even="last";} else { $even=""; } $TitlestringCut= substr($title,0,35); // make sure it ends in a word so assassinate doesn't become ass... $Titlestring = substr($TitlestringCut, 0, strrpos($TitlestringCut, ' ')).''; // Content Cut $stringCut= substr($TextWithOutImg,0,300); // make sure it ends in a word so assassinate doesn't become ass... $string = substr($stringCut, 0, strrpos($stringCut, ' ')); //echo "Image Source: ".$imgOfText."\n\n"; //echo "Text Without Image:\n".$TextWithOutImg; echo "";echo "".$row['cate_id']." || ".htmlspecialchars($row['art_name'], ENT_QUOTES)."";echo "";echo "\"\"]]> ";echo htmlspecialchars($string, ENT_QUOTES);echo "";echo 'http://livefmghana.com/'.$row['cate_id'].'/'.$row['id'].'/news'; // adds 20% to spaces in url$rfcdate = date(DATE_RSS, strtotime($row['published'])); //converts datetimestamp to valid rss date formatecho "".$rfcdate."";echo "";} }/*end of loop*/echo "";echo "";?>