¡@

Home 

php Programming Glossary: li

Getting a modified preorder tree traversal model (nested set) into a <ul>

http://stackoverflow.com/questions/1310649/getting-a-modified-preorder-tree-traversal-model-nested-set-into-a-ul

fetchRow rs diff row rght row lft if diff p_diff result. li . row 'title' . li elseif row rght row lft 1 row rght p_right.. row rght row lft if diff p_diff result. li . row 'title' . li elseif row rght row lft 1 row rght p_right result. ul result... row rght row lft 1 row rght p_right result. ul result. li . row 'title' . li else result. li . row 'title' . li p_right..

How can I convert a series of parent-child relationships into a hierarchical tree?

http://stackoverflow.com/questions/2915748/how-can-i-convert-a-series-of-parent-child-relationships-into-a-hierarchical-tre

tree I have a bunch of name parentname pairs that I'd like to turn into as few heirarchical tree structures as possible... that I want is a nested set of ul elements with each li containing the child's name. There are no inconsistencies in.. child parent pairs to a set of Nested ul s I have a feeling that recursion is involved but I'm not quite awake enough..