\nno such team\n\n";
}
exit();
}
$query = "select * from team where name like '%$name_lc%'";
$result_list = mysql_query($query);
if ($format == 'xml') {
require_once ('../inc/xml.inc');
xml_header();
echo "\n";
$total = 0;
while ($team = mysql_fetch_object($result_list)) {
show_team_xml($team);
$total++;
if ($total == 100) break;
}
echo "\n";
exit();
}
page_head("Search Results");
if ($result_list) {
$total = 0;
echo "
Search results for '$team_name'
";
echo "";
echo "You may view these teams' members, statistics, and information.";
echo "
";
while ($team_possible = mysql_fetch_object($result_list)) {
if ($total >= 100) {
$too_many = true;
break;
}
echo "- ";
echo "id>";
echo "$team_possible->name
";
$total++;
}
echo "
";
if ($too_many) {
echo "
More than 100 teams match your search.
The first 100 are shown.
";
}
}
echo "End of results
";
echo "If you cannot find the team you are looking for, you may create a team ";
echo "by clicking here.";
page_tail();
?>