login; $signupb = $xb->signup; } else { $loginb = $_GET['x']; $signupb = 0; } $dbresh = mysql_query("SELECT `van` AS login, `voor` AS person FROM `banklogs` WHERE `soort`='donatie' AND `datum` >= '$signupb' AND (`van`='$loginb' OR `voor`='$loginb')"); $users = array(); while($user = mysql_fetch_object($dbresh)) { if($user->login != $loginb) $users[strtolower($user->login)] = $user->login; if($user->person != $loginb) $users[strtolower($user->person)] = $user->person; } ksort($users); print " \n"; print " \n"; print " \n "; } /* ------------------------- */ ?> "; echo "
Admin - User Info
[R] [D] [P] $loginb
\n \n \n \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 " \n"; else print " \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 " \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 " \n"; } print " \n\n"; print "
   OntvangenVerzonden
[R] [D] [P] $user
[R] [D] [P] $user\$$userReceived\$$userSend
Totaal   \$$totalReceived \$$totalSend

"; echo "
Fout
"; echo "Alleen toegang voor Admins,"; } ?>