Question
PHP details page?
Hi,
I need an answer to something i should know and have probably already learned,
but i think the problem is that i'm not really grasping the PHP terminology and syntax properly yet. I have scoured the net (and probably found what i needed to and didn't even know it) and i'm still stuck.
What i have so far is a homepage with navigation and what i want to do is setup all the links to link to one showDetail page. I want to show different details on that page according to what link was clicked, and i'm not sure how to do that?
To clarify, some of the links i have are 'venues' (which is split into venues in different towns) and 'photographers'.
If the user clicks the venues' link they will be taken to the showDetail page and see all venues for all towns, but shoul they click the 'east london' link under venues they will see only venues in East London. If they click 'photographers' they will see all photographers on the showDetail page.
Do i need only one recordset (that gets everything) on the showDetail page or do i need one for 'getVenuesAll', 'getVenuesEL', 'getPhotographers' etc.? Either way, how do i limit the results according to which link brought the user to the showDetail page? I'm pretty confident setting up the recordsets, just not sure how to make sure the showDetail page limits the results to only one recordset of many or how to limit the results of one big recordset if it's not limited by the MySQL statement.
I realise i could have a different page for each link, each with their own recordset, but that would surely defeat the point of a dynamic site. I would really appreciate any clarity or guidance here, or a link to some help.
I am using DW8 on a windows XP machine.
Thanks so much!
Shane
I need an answer to something i should know and have probably already learned,
but i think the problem is that i'm not really grasping the PHP terminology and syntax properly yet. I have scoured the net (and probably found what i needed to and didn't even know it) and i'm still stuck.
What i have so far is a homepage with navigation and what i want to do is setup all the links to link to one showDetail page. I want to show different details on that page according to what link was clicked, and i'm not sure how to do that?
To clarify, some of the links i have are 'venues' (which is split into venues in different towns) and 'photographers'.
If the user clicks the venues' link they will be taken to the showDetail page and see all venues for all towns, but shoul they click the 'east london' link under venues they will see only venues in East London. If they click 'photographers' they will see all photographers on the showDetail page.
Do i need only one recordset (that gets everything) on the showDetail page or do i need one for 'getVenuesAll', 'getVenuesEL', 'getPhotographers' etc.? Either way, how do i limit the results according to which link brought the user to the showDetail page? I'm pretty confident setting up the recordsets, just not sure how to make sure the showDetail page limits the results to only one recordset of many or how to limit the results of one big recordset if it's not limited by the MySQL statement.
I realise i could have a different page for each link, each with their own recordset, but that would surely defeat the point of a dynamic site. I would really appreciate any clarity or guidance here, or a link to some help.
I am using DW8 on a windows XP machine.
Thanks so much!
Shane
