All pastes #424544 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-04-04 21:13 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