Re: header?
| From: | Bayu Susiloadhy | Date: | Mon, 20 Jan 2003 11:35:03 +0000 |
| Subject: | Re: header? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-24970@lists.php.net to get a copy of this message | ||
there is a lot ways to do it,this is one and not the best of them
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