Select all team data from a drop down I have a drupal form  with a drop down list of teams like team A, team B, Team C and on submit it goes to page /team-page/[team-id] and displays the particular team details.So how do I do if I have to select all team data? because my page only accepts team ids and I want to use /team-page/all.
if your teams data are coming from the same table use drupal db select and table api to create a table where u can see all the data 
try to ajust that to your system

  /**
 * Render a filtered list of entries in the database.
 *
 * DBTNG also helps processing queries that return several rows, providing the
 * found objects in the same query execution call.
 *
 * This function queries the database using a JOIN between users table and the
 * example entries, to provide the username that created the entry, and creates
 * a table with the results, processing each row.
 *
 * SELECT
 *  e.pid as pid, e.name as name, e.surname as surname, e.age as age
 *  u.name as username
 * FROM
 *  {dbtng_example} e
 * JOIN
 *  users u ON e.uid = u.uid
 * WHERE
 *  e.name = 'John' AND e.age &gt; 18
 *
 * @see db_select()
 * @see http://drupal.org/node/310075
 */
function dbtng_example_advanced_list() {
  $output = '';

  $select = db_select('dbtng_example', 'e');
  // Join the users table, so we can get the entry creator's username.
  $select-&gt;join('users', 'u', 'e.uid = u.uid');
  // Select these specific fields for the output.
  $select-&gt;addField('e', 'pid');
  $select-&gt;addField('u', 'name', 'username');
  $select-&gt;addField('e', 'name');
  $select-&gt;addField('e', 'surname');
  $select-&gt;addField('e', 'age');
  // Filter only persons named "John".
  $select-&gt;condition('e.name', 'John');
  // Filter only persons older than 18 years.
  $select-&gt;condition('e.age', 18, '&gt;');
  // Make sure we only get items 0-49, for scalability reasons.
  $select-&gt;range(0, 50);

  // Now, loop all these entries and show them in a table. Note that there is no
  // db_fetch_* object or array function being called here. Also note that the
  // following line could have been written as
  // $entries = $select-&gt;execute()-&gt;fetchAll() which would return each selected
  // record as an object instead of an array.
  $entries = $select-&gt;execute()-&gt;fetchAll(PDO::FETCH_ASSOC);
  if (!empty($entries)) {
    $rows = array();
    foreach ($entries as $entry) {
      // Sanitize the data before handing it off to the theme layer.
      $rows[] = array_map('check_plain', $entry);
    }
    // Make a table for them.
    $header = array(t('Id'), t('Created by'), t('Name'), t('Surname'), t('Age'));
    $output .= theme('table', array('header' =&gt; $header, 'rows' =&gt; $rows));
  }
  else {
    drupal_set_message(t('No entries meet the filter criteria (Name = "John" and Age &gt; 18).'));
  }
  return $output;
}