¡@

Home 

php Programming Glossary: top_id

How to obtain a nested HTML list from object's array recordset?

http://stackoverflow.com/questions/8020947/how-to-obtain-a-nested-html-list-from-objects-array-recordset

I have this array of objects returned by a SQL query where top_id is my parent ID field Array 0 stdClass Object id 1 top_id 0.. top_id is my parent ID field Array 0 stdClass Object id 1 top_id 0 name Cat 1 1 stdClass Object id 2 top_id 0 name Cat 2 2 stdClass.. Object id 1 top_id 0 name Cat 1 1 stdClass Object id 2 top_id 0 name Cat 2 2 stdClass Object id 3 top_id 0 name Cat 3 3 stdClass..