\n | | \n Ontvangen | \n Verzonden | \n";
$total = 0;
foreach($users as $lcuser => $user) {
$userReceived = 0;
$userSend = 0;
if(mysql_num_rows(mysql_query("SELECT `id` FROM `[users]` WHERE `login`='$user'")) > 0)
print " [R] [D] [P] | $user | \n";
else
print " [R] [D] [P] | $user | \n";
$dbres = mysql_query("SELECT `aantal` FROM `banklogs` WHERE `soort`='donatie' AND `voor`='$loginb' AND `van`='$user' AND `datum` >= '$signupb'");
while($amount = mysql_fetch_object($dbres))
$userReceived += $amount->aantal;
$totalReceived += $userReceived;
print " \$$userReceived | \n";
$dbres = mysql_query("SELECT `aantal` FROM `banklogs` WHERE `soort`='donatie' AND `voor`='$user' AND `van`='$loginb' AND `datum` >= '$signupb'");
while($amount = mysql_fetch_object($dbres))
$userSend += $amount->aantal;
$totalSend += $userSend;
print " \$$userSend | \n";
}
print " Totaal | | \$$totalReceived | \$$totalSend | \n\n";
print " |
\n