fredted40x Posted March 29, 2010 Share Posted March 29, 2010 Hi, I’m trying to create a mini forum in php and html, it will contain about three categories that people can post in. Would it be better to create three separate php files for each category with the same code in apart from a change in the sql code or would it be better to use the same page for all categories but pass a value through the href links to say what to search for and then change the sql where clause to find the posts in that category? Thanks. Quote Link to comment Share on other sites More sharing options...
khr2003 Posted March 29, 2010 Share Posted March 29, 2010 It really depends on the use of such forum. I am guessing that you would have unique id for each category that you will retrieve them through $_GET or other ways, so one page is enough as far as my assumption goes. 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.