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. Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.