$head_made = false;
$result = db_query('select * from {user_comment_ranks}');
while ($row = db_fetch_array($result)) {
if (!$head_made) {
$head_made = true;
?>
foreach(array_keys($row) as $head) echo '| ', $head, ' | '; ?>
} ?>
foreach($row as $value) echo '| ', $value, ' | '; ?>
} ?>
}
/*
creating initial table;
braces are a "drupalism" to localize table names with prefixes on shared servers
*/
$query = <<
Initial User List
= _show_user_ranks(); ?>
$query = <<
With Comment Tally
= _show_user_ranks(); ?>
With Rank Tallies
$query = <<
= _show_user_ranks(); ?>