I have nested set table (Joomla categories table):
id parent_id lft rgt extension title
1 0 0 19 system ROOT
...
12 1 3 6 com_hi Category1
13 12 4 5 com_hi Category2
How it is possible to convert this data into select box?
<select>
<option value="12">Category1</option>
<option value="13">...Category2</option>
</select>