justAnoob Posted May 20, 2009 Share Posted May 20, 2009 Hi..... I have a category box with categories listed in text like so Category Selection category 1 ---$category1 = cat1 category 2 ---$category2 = cat2 category 3 category 4 category 5 Each category pulls info from mysql and displays it. And each category has its own page.....category1.php category2.php, category3.php,,, and so on....What I'm looking to do is just have 1 php page that could display all the categories, depending which one the user clicks on... I guess my question is how do I create a variable off of some text that has a link attached to it...Look above at the categories to see what I mean. Link to comment https://forums.phpfreaks.com/topic/159000-solved-different-categories-on-1-php-page/ Share on other sites More sharing options...
justAnoob Posted May 20, 2009 Author Share Posted May 20, 2009 Would I pass the name of the category through the URL and then retrieve the name so I could use it in the mysql statement for pulling information? Link to comment https://forums.phpfreaks.com/topic/159000-solved-different-categories-on-1-php-page/#findComment-838528 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.