".$sql."\n"; $result = db_query($db,$sql); echo "\n"; echo "\n"; while ($result->fetchInto($row)) { echo ""; $rkeys=array_keys($row); foreach ($rkeys as $key) { $data[$key]=array_shift($row); echo ""; } echo "\n"; } echo "
accountusersjob countCPU-hours
".htmlspecialchars($data[$key])."
\n"; db_disconnect($db); bookmarkable_url(); } else { begin_form("active-accounts.php"); system_chooser(); date_fields(); $choices=array("cpuhrs","jobs","users"); $defaultchoice="cpuhrs"; pulldown("order","Order by",$choices,$defaultchoice); textfield("limit","Max shown","10",4); end_form(); } page_footer(); ?>