<?
function schuif($i,$c) {
include("datab.inc.php");
{ $Query = "SELECT Naam,Map_Id FROM map WHERE Parent_ID='$i'and Beheerder_Id='1'";
$Result = mysql_db_query ($DBName, $Query, $Link);
// Fetch the results from the database.
while ($row = mysql_fetch_array ($Result)){ $c++;$spatie="";
for($j=0;$j<$c;$j++)
{$spatie=$spatie.' ';}
$optie= $spatie.$row['Naam']."<br>";
$opties[]=$optie;
schuif($row['Map_Id'],$c);
$c--;
}
} return $opties;
}
include("datab.inc.php");
$Query = "SELECT Naam,Map_Id,Parent_Id FROM map WHERE Beheerder_ID='1'";
$Result = mysql_db_query ($DBName, $Query, $Link);
// Fetch the results from the database.
$i=0;
$Row = mysql_fetch_array ($Result);
$test[]= schuif($i,$i);
echo $test[2];
mysql_close ($Link);
?>
why can he not return the array???