<?
include ('logue.php');
include ('entete2.php');

$sql = ('SELECT * FROM matgraph_users ORDER BY galaxi, system, position');
$res = mysql_query($sql);
while ($row = mysql_fetch_array($res)){
	$galaximax[] = $row['galaxi'];
	$systemmax[] = $row['system'];
	$positionmax[] = $row['position'];
}

echo "<br>".print_r($galaximax);
echo "<br>".print_r($systemmax);
echo "<br>".print_r($positionmax);

$galaximax = $galaximax[sizeof($galaximax)-1];
$galaximax1 = $galaximax + 1 ;
$systemmax = ($systemmax[sizeof($systemmax)-1] + 2);
$positionmax = $positionmax[sizeof($positionmax)-1];

echo "<br>";
echo "<br>$galaximax";
echo "<br>$galaximax1";
echo "<br>$systemmax";
echo "<br>$positionmax";

?>