title: How can I convert a nested set model tree hierarchy to into HTML list elements with PHP?
body: <p>I have a hierarchical tree stored in a database using the nested set model. How can I print this hierarchy in a <code>&lt;li&gt;</code> list with PHP?</p>
  
  <p>my database table:
  <a href="http://i.stack.imgur.com/RfhpW.png" rel="nofollow">http://i.stack.imgur.com/RfhpW.png</a></p>
  
  <p>my tree structure:
  <a href="http://i.stack.imgur.com/uTRJK.png" rel="nofollow">http://i.stack.imgur.com/uTRJK.png</a></p>