Just a general database design question - no programming, but a bit of problem solving I can't quite get my head around...
I have a set of pages for a GUI, which each contain a set of 'modules' - basically styled content boxes containing a few functions/information relevant to the page.
Both the pages and modules are instantiated as php objects before being rendered. I want the variables for these objects (title, content etc...) to be called from a database.
What I can't work out is how to store this data in a database. I have a table where each entry is a page, and a table where each entry is a module, but I can't work out how to store the data representing the modules that each page has, particularly considering the modules may be common to more than one page.
Nested tables would be the ideal answer, does mySQL allow this?