create link in the particular category file:
<a href="subcat.php?category=1&subcat=1">subcat 1</a>
<a href="subcat.php?category=1&subcat=2">subcat 2</a>
then in subcat.php:
include("subcat".$category.$subcat.".php);
when you click the 2nd link above it goes to subcat.php that
includes subcat12.php
subcat12.php is the subcategory file according to category1,subcategory2
Addison Ellis writes:
hello,
i have a page where the user selects a category. they are directed to a page that takes them to subactegory and displays the subcategory according to category id.
my question is can i from there direct them to a particular page from a list of a number of different pages according to their subcategory choice? my thought was to direct them to one page that contains all the relations between category and subcategory and if subcategory=id where category=$category then include or header example.php.
i wasn't even sure about that.
anyway... thank you for your time and thoughts. best, addison
--
Addison Ellis
small independent publishing co.
114 B 29th Avenue North
Nashville, TN 37203
(615) 321-1791
addison@bellsouth.net
info@smipco.com
subsidiaries of small independent publishing co.
info@gloabaldog.com
info@momandpocentral.com
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
STOP doing things that
can be done with yr computer!
--
&$BS
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php