I would have a table with sortid, url and description.
Query the records, then use HTML and say
[/code]Then just echo your [ and | between with some logic.
I use the mysql_fetch_row, then I send the $row[#] to variables, then use the variables in my HTML that I echo.
Some snippets that I use:
[code]
I took out some of my control breaks like where I check to see if it is a different block or the admin flag check on my mainnav.
There is probably a more efficient way to handle this, but this works for what I need it to.