id != $team->userid) { page_head("Permission denied"); echo "Only a team's founder may view a team's email list.\n
\n"; } else { page_head("$team->name Email List"); echo "

"; echo ""; echo ""; echo ""; echo "\n"; $query = sprintf( "select * from user where teamid=%d", $team->id ); $result = mysql_query($query); if ($result) { for ($i = 0; $i < $team->nusers; $i++) { $user_team = mysql_fetch_object($result); echo ""; echo ""; } } echo "
"; echo "Team Email List:
Name:Email Address:
$user_team->nameemail_addr>$user_team->email_addr
"; } page_tail(); ?>