title: Nested Set model in PHP/Javascript to work with MySQL
body: <p>I am using a <a href="http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/" rel="nofollow noreferrer">MySQL Nested Set approach</a> to store the classification of the various products that are sold on the website. I am looking for a nice javascript library to help out with rendering the tree from the nested set approach. I also need a good javascript drag and drop script to re-arrange and update the MySQL table.</p>
  
  <p>Are there any good javascript libraries that will let me to do the following the the mysql table that stores values using the nested set model?</p>
  
  <ol>
  <li>Display from the table as a tree</li>
  <li>Re-arrange the tree in Javascript and save it into the MySQL table using PHP</li>
  </ol>
  
  <p>I have been trying to get this working with ExtJS/jQuery, etc. I can get the first part working by generating ul, li elements using PHP. I cannot find a Javascript library that will work with nested set and send data to PHP. I tried ExtJS using its Nested Set Model but I didn't have much luck.</p>