i'm trying to figure out how to use the MPTTD using sitepoint's tutorial.
$result = mysql_query('SELECT title, lft, rgt FROM tree '.
'WHERE lft BETWEEN '.$row['lft'].' AND '.
$row['rgt'].' ORDER BY lft ASC;');
the root has lft = 1, rgt = 42 so if i used lft = 1, rgt = 42 .. it would return
A A1 A2 A3 A4 B B1 B2 B3 B4 C C1 C2 C3 C4 D D1 D2 D3 D4
how do i retrieve only the 1st and 2nd child from the descendants like this
A A1 A2 B B1 B2 C C1 C2 D D1 D2
thank you for your help :)