Well, I might as well start a new thread. This isn't working as I had hoped. Here is the array that is being built from the database. Notice how sidebar[0] and sidebar[1] rpeat the value "Favs". This will repeat the same value on my form which I don't want. All of the duplicate names should be grouped together. Is this possible?
Array
(
[1] => Array
(
[date] => Sun, 25 Oct 2009
[sidebar] => Array
(
[0] => Array
(
[header] => Favs
[link] => google.com
)
[1] => Array
(
[header] => Favs
[link] => yahoo.com
)
[2] => Array
(
[header] => Offsite
[link] => dfdaf
)
[3] => Array
(
[header] => Something
[link] => something else
)
)
)
)
Here is an example of what I need.
The database will more than likely have multiple rows with the same sidebar name like "Favs" or something whatever else. These headings should be grouped into single categories and all of the links grouped.
Favs google http://...
Favs yahoo http://...
Favs SO http://...
bla bla http://...
bla bla1 http://...
Should give:
Favs
google
yahoo
SO
bla
bla
bla1