Re: [PHP-DB] a menu item from a database, linked to a list from a another table

2002-11-14 Thread Jason Wong
On Thursday 14 November 2002 23:17, [EMAIL PROTECTED] wrote:
 Jason Wong [EMAIL PROTECTED] wrote on 11/13/2002 10:46:32 PM:
  On Thursday 14 November 2002 07:32, [EMAIL PROTECTED] wrote:
   Is this even possible? I have a menu that is generated from a table.
 
  What is your menu -- a set of a tags? or a selector box? I suspect you

 mean

  the latter ...

 Not a list box, but a menu of about 15 category titles, all shown on the
 page in
 a list, click on category get the category items listed. Both the category
 titles
 and the individual items will come from a database.
 I am trying this to make a faq's page - list the faq categories, click on
 the
 category and get the list of faq's. The first part is easy, the second part
 is
 easy, both seperately.

Right, so make your links something like:

  http://www.example.com/faq.php?category=3

Your page then uses $_GET['category'] to builds a query to extract the items 
in the selected category.

Then it builds links which looks something like:

  http://www.example.com/faq.php?category=3item=2


-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *


/*
It may be that our role on this planet is not to worship God but to
 create him.
 -Arthur C. Clarke
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] a menu item from a database, linked to a list from a another table

2002-11-13 Thread chip . wiegand
Is this even possible? I have a menu that is generated from a table.
Typically, the menu items are links
to html pages. I would like to have the link bring up a list of items from
another table in the database,
not an html page. So I guess this would be a select statement linked from a
select statement?
Is this even possible?

--
Chip Wiegand
Computer Services
Simrad, Inc
www.simradusa.com
[EMAIL PROTECTED]

There is no reason anyone would want a computer in their home.
 --Ken Olson, president, chairman and founder of Digital Equipment
Corporation, 1977
 (They why do I have 8? Somebody help me!)



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] a menu item from a database, linked to a list from a another table

2002-11-13 Thread Jason Wong
On Thursday 14 November 2002 07:32, [EMAIL PROTECTED] wrote:
 Is this even possible? I have a menu that is generated from a table.

What is your menu -- a set of a tags? or a selector box? I suspect you mean 
the latter ...

 Typically, the menu items are links
 to html pages. I would like to have the link bring up a list of items from
 another table in the database,
 not an html page. So I guess this would be a select statement linked from a
 select statement?
 Is this even possible?

Yes, google - dynamic linked listbox php.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *


/*
The early bird who catches the worm works for someone who comes in late
and owns the worm farm.
-- Travis McGee
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php