query("SELECT post_name FROM wp_posts WHERE post_type='seiteninformation' AND post_status='publish' ORDER BY post_date DESC LIMIT ".($max_latest*4).";"); $c = 0; $usedDomains[] = ""; while(($latestDomain = $latestDomains->fetch_row()) && $c<$max_latest) { if(!in_array($latestDomain[0], $usedDomains)) { $c++; $usedDomains[] = $latestDomain[0]; echo " ".$latestDomain[0]."
"; } } $result = $db->query("SELECT COUNT(*) FROM wp_posts WHERE post_type='seiteninformation' AND post_status='publish';"); $row = $result->fetch_row(); $domainsCount = $row[0]; echo "Am ".date("d.m.Y")." sind bereits ".$domainsCount." Domains bei SEODaten eingetragen.
"; ?>