<?php

function getRoundInfo($RID)
{
	include('./queries/getRoundInfo.php'); // imports the correct sql statement
	$result = mysql_query($query) or die('Query failed: ' . mysql_error());
	$data = array();

	$idx = 0;
	while ($row = mysql_fetch_assoc($result)) {
		$data[$idx] = $row;
		$idx++;
	}
	mysql_free_result($result);
	return $data;
}

function getPRoundInfo($RID,$RCUR,$RNEXT,$RPORT)
{
if (($RNEXT == '') or ($RNEXT < 100)) {$RNEXT = time();}
	include('./queries/getPRoundInfo.php'); // imports the correct sql statement
	$result = mysql_query($query) or die('Query failed: ' . mysql_error());
	$data = array();

	$idx = 0;
	while ($row = mysql_fetch_assoc($result)) {
		$data[$idx] = $row;
		$idx++;
	}
	mysql_free_result($result);
	return $data;
}

function armyname($team) {

	switch($team) {
		case "0":
		return "United States Marine Corps";
      	break;
		
		case "1":
		return "Middle Eastern Coalition";
      	break;

		case "2":
		return "People's Liberation Army";
      	break;

		case "3":
		return "Seals";
      	break;

		case "4":
		return "SAS";
      	break;

		case "5":
		return "Spetsnaz";
      	break;
		
		case "6":
		return "MECSF";
      	break;
		
		case "7":
		return "Rebels";
      	break;
		
		case "8":
		return "Insurgents";
      	break;

		case "9":
		return "European Union";
      	break;
	}

}

?>