heres the function: http://pastebin.com/tQLjzzbH
I want it to return this:
{"years":[
{
"yName":"2011",
"yAlbums:[
{
auID:"1234",
aID:"456",
etc..
},
{
auID:"12345",
aID:"4567",
etc..
}
},
{
"yName":"2010",
"yAlbums:[
{
auID:"2234",
aID:"556",
etc..
}
}
]}
but its only returning this:
{"years":[
{"yName":"2011"},
{"yName":"2010"}]}
Been trying to get this for ages, am totally lost now. Some help would be appreciated.
Thanks.