David Blomstrom wrote:

I'm still stuck on the problem I asked about a day or
two ago. I'm working on a page at
http://www.geozoo.org/stacks/ that draws data from a
table that lists animal taxons (orders, families,
species, etc.) in a child-parent relationship.

It works exactly the way it should. Try
http://www.geozoo.org/stacks/Animalia, watching the
navigation links and the column on the right, for
example. The problem is that the children of genera -
species - are properly displayed as TWO WORDS - the
child (species) and parent (genus).

http://www.geozoo.org/stacks/Canis illustrates the
problem I run into when I tweak my PHP so that Canis
lupus is displayed instead of just lupus, for example.
If you click Canis lupus or type in
http://www.geozoo.org/stacks/Canis_lupus, you get a
404 Page Not Found Error.

What's wrong with (in PHP) just doing something like

/*
        $url is the part after /stacks/ in the URL
*/
$parts = explode('_', $url);
$taxon = $parts[1];


Which, for 'Canis_lupus', would give you 'lupus'. Then you can just plug that in to your SQL query, no?

Or have I completely misunderstood you...

Jasper

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to