DezBlanco wrote:
> I guess the last time you took a bus or train from A to
B, you broke out your
> compass and map instead of enjoying the ride. Did you
ask the driver the name
> of every street the bus crossed, or did you simply ask,
"are you going to 'B'?"
Before getting on the bus, I checked the bus company's route
map and
timetable, made sure that I knew where the bus stop was, and
*paid* the
driver when I got on.
> Whether you believe it or not many of us on here buy the
software so that we
> don't have to go through the process of writing raw
code.
In that case, you have probably bought the wrong software.
Dreamweaver
speeds up the process of coding, but it's not a magic wand.
> Would it have really be that difficult for you to just
tell me how to fix my
> problem? Oh no... that would have been too much like
like looking at a map.
You'll find that I give a lot of help in these forums, as do
many other
people. Post a message in the Dreamweaver *application
development*
forum saying you don't want to get into code, and you give
the
impression that even if given a map, you won't use it.
However, if you're willing to use a map, here's one for you:
Basically, what you're trying to do is build what the
Dreamweaver
documentation refers to as a Master/Detail set. The master is
your list
of articles, the detail is each individual article.
When building the master page, you need to retrieve the
primary key of
each article along with its title. Let's say it's called
article_id.
Each link needs to point to the detail page (for example,
detail.php),
with the article_id appended as a query string. So the link
looks
something like this:
<a href="detail.php?article_id=3">Some brilliant
article</a>
The detail page retrieves the value of article_id from the
$_GET array,
uses it to get a recordset containing the article, and then
displays the
article contents.
You build the query string in the master page by clicking the
folder
icon alongside the Link field in the Property inspector,
select
detail.php in the Select File dialog box, and then click the
Parameters
button. This opens the Parameters dialog box. Type article_id
in the
Name field, and click the lightning bolt icon to the right of
the Value
field. This, in turn, opens the Dynamic Data dialog box,
where you need
to select article_id from your recordset.
The effect of all this is to create code like this:
<a href="detail.php?article_id=<?php echo
$row_recordsetName['article_id']; ?>">Some brilliant
article</a>
You don't actually need to get your hands dirty with code
during this
process, but without understanding the underlying code, it's
easy to get
lost. Rely on Dreamweaver to do everything for you, and
you'll be
severely limited in what you can achieve. Take a little time
to learn
about the technology you're using, and Dreamweaver becomes a
great
timesaver.
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/