"Update", 2=>"News", 3=>"Events"); $announces = array(); $abfrage = "SELECT * FROM `cp_choko_news` WHERE `news_category` >=0 ORDER BY `id` DESC LIMIT 15"; $ausgabe = mysql_query($abfrage); $cnt = 0; while($row = mysql_fetch_object($ausgabe)) { $announce = htmlentities($row->news_content, ENT_QUOTES); if ($lastannounce != $announce) { $date = $row->news_date_posted; $tag = (substr($date, 8,2)); $monat = (substr($date, 5,2)); $jahr = (substr($date, 0,4)); $cat = $categories[$row->news_category]; if ($lastdate != $date) { echo "Maintenance Changelogs $tag.$monat.$jahr
"; echo "$cat
"; echo "-----------------------------------------------
"; echo "

  • $announce
    "; echo "-----------------------------------------------
    "; } else { echo "
  • $announce
    "; } } $lastannounce = $announce; $lastdate = $date; } mysql_close(); ?>