ronaldb66
10-22-2003, 12:13 PM
Hi all,
my PHP knowledge is still in it's infancy, so to get some practice I thought it would be nice to figure out a way to dynamically serve up a basic site menu using an included PHP script; I'm just trying to get my head around how to approach this.
Basically, I'd like to generate a simple, texted based menu, controlled by (a) variable(s) included in the page it's showing on; the menu I'm envisaging has multiple (about 3 or 4) levels and for every page, only the first level menu choices and all parent levels of the page shown should be visible.
For a first version, an array to hold the necessary info on the menu would more than suffice; if needed, I think I would be capable to convert to using a table lateron.
I've been searching this forum, but nothing useful came up; if anyone can point me to some useful info, an example of something similar, a relevant thread I've missed while searching, or any thoughts on the basic approach, I'm looking forward to it.
I'm not after a full working cut-n-paste solution, just something to get me started.
Thanks in advance.
my PHP knowledge is still in it's infancy, so to get some practice I thought it would be nice to figure out a way to dynamically serve up a basic site menu using an included PHP script; I'm just trying to get my head around how to approach this.
Basically, I'd like to generate a simple, texted based menu, controlled by (a) variable(s) included in the page it's showing on; the menu I'm envisaging has multiple (about 3 or 4) levels and for every page, only the first level menu choices and all parent levels of the page shown should be visible.
For a first version, an array to hold the necessary info on the menu would more than suffice; if needed, I think I would be capable to convert to using a table lateron.
I've been searching this forum, but nothing useful came up; if anyone can point me to some useful info, an example of something similar, a relevant thread I've missed while searching, or any thoughts on the basic approach, I'm looking forward to it.
I'm not after a full working cut-n-paste solution, just something to get me started.
Thanks in advance.