All pastes #424623 Raw Edit

Mine

public text v1 · immutable
·published 2007-04-04 22:28 UTC
rendered paste body
table
+-------------+
| id          |
| description |
| parent      |
| order       |
+-------------+

Can that data be put in an array with a tree structure like this

+ id,description
|       +---------+ id,description  
|                 + id,description  
|                 + id,description  
+ id,description
|       +---------+ id,description  
|                 + id,description  
|                 |       +---------+ id,description  
|                 |                 + id,description  
|                 + id,description  
+ id,description
        +---------+ id,description  
                          +---------+ id,description  
                                    + id,description