<?php

function getPlayerHistory($PID)
{
	include('./queries/getPlayerHistory.php'); // imports the correct sql statement
	$result = mysqli_query($GLOBALS["___mysqli_ston"], $query) or die('Query failed: ' . mysqli_error($GLOBALS["___mysqli_ston"]));
	$data = array();

	$idx = 0;
	while ($row = mysqli_fetch_assoc($result)) {
		$data[$idx] = $row;
		$idx++;
	}
	((mysqli_free_result($result) || (is_object($result) && (get_class($result) == "mysqli_result"))) ? true : false);
	return $data;
}
?>