Hello, I thought up of a great way to build my online gallery but coding it in PHP is another story. I have no idea what to do, so I'll describe what I'm attempting and perhaps someone might be able to direct me. Something tells me the answer might have something to to with arrays:
My online gallery has 5 sections. Each section is build from the same basic framework that is "gallery.php".
The variables determining the sections are, for example: gallery.php?section=illustration
Gallery.php contains the main code which generates the various galleries by using the data from the five different section files.
Each section file contains the following data: Section description text and header and a list (an array?) of images to display in a table.
In other words, the gallery.php code should echo the descriptive text from [illustration.php] AND generate an html table from the list/array in that file as well.
My question is really two-fold: how do I use the same file (illustration.php) to define two different variables
and
what functions do I use to generate a table with data provided in an external file's (illustration.php) list or array?
Sorry if I repeat myself, I'm trying to be as clear as possible!
Thanks