Basically - it a whole heap of 'static' tables in MySQL pumped into one big multidimensional array. I've got to make a few different tweaks to it to get it 100% right, but the basics work just fine
Looks like it works. In the olden days, the big problem was to take the PHP data and insert that into Javascript to build dynamic web pages. The easiest way of doing this was to use string transfers. So for the MP I serialized all the SQL recordsets into delimited strings and passed them direct to the Javascript for deserialization (using split). Dumb and clunky, but works well.