PHP-Code:
$pstats_gesamt = mysql_fetch_array(db_query("SELECT COUNT(tan) AS ganzahl, SUM(verdienst) AS gverdienst FROM ".$db_prefix."_gebuchte_werbung WHERE werbeart = 'paidmail' AND menge > 0 AND status = 1 AND verdienst > 0 "));
$fstats_gesamt = mysql_fetch_array(db_query("SELECT COUNT(tan) AS ganzahl, SUM(verdienst) AS gverdienst FROM ".$db_prefix."_gebuchte_werbung WHERE werbeart = 'forcedbanner' AND menge > 0 AND status = 1 AND verdienst > 0 "));
$lstats_gesamt = mysql_fetch_array(db_query("SELECT COUNT(tan) AS ganzahl, SUM(verdienst) AS gverdienst FROM ".$db_prefix."_gebuchte_werbung WHERE werbeart = 'paidlinks' AND menge > 0 AND status = 1 AND verdienst > 0 "));
PHP-Code:
<?=@number_format($pstats_gesamt['ganzahl'],0,",",". ");?>
Evtl kannst du dir dadraus was basteln