In MySQL the table test looks like this:
id name lft rgt
1 Folder 1 1 10
2 Child 1 2 3
3 Child 2 4 7
4 Child 1 5 6
5 Child 3 8 9
When I do:
$results = mysql_query("SELETCT * FROM test ORDER BY id");
$fetch = mysql_fetch_array($results);
echo "<pre>";
echo print_r($fetch);
echo "</pre>;
The result is:
[0] => 1
[id] => 1
[1] => Folder 1
[name] => Folder 1
[2] => 1
[lft] => 1
[3] => 10
[rgt] => 10
My question is why [0] => 1, [1] => Folder 1, 2] => 1 and [3] => 10 are there? As I see they are somehow linked with the original rows, maybe these are the indexes for them but how should I get rid of them?