farsightedmedia wrote:
> 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?
You add a query string to the link containing the criteria
you want the
showDetail page to use. For example:
showDetail.php?type=venues&location=East_London
The values will be retrieved in showDetail.php through the
$_GET array
as $_GET['type'] and $_GET['location']. Use these values as
variables in
the SQL query that creates the recordset.
How many recordsets you need depends on the table structure
of your
database. For example, if venues and photographers are in
different
tables, you would need a structure like this:
if (isset($_GET['type']) && $_GET['type'] ==
'venues') {
// create venues recordset
} elseif (isset($_GET['type']) && $_GET['type'] ==
'photographers') {
// create photographers recordset
}
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/