nielcleo Posted August 18, 2011 Share Posted August 18, 2011 Hi there,anyone here can help me about the algorithm of the category.. im messing up how it will flow.. Link to comment Share on other sites More sharing options...
Man In Tan Posted August 18, 2011 Share Posted August 18, 2011 I don't understand. Can you elaborate? Are you talking about forum categories? Link to comment Share on other sites More sharing options...
nielcleo Posted August 18, 2011 Author Share Posted August 18, 2011 I don't understand. Can you elaborate? Are you talking about forum categories?opss sorry for that... im talking about the blog categories... Link to comment Share on other sites More sharing options...
justsomeguy Posted August 18, 2011 Share Posted August 18, 2011 What exactly is "the algorithm of the category"? Link to comment Share on other sites More sharing options...
nielcleo Posted August 19, 2011 Author Share Posted August 19, 2011 What exactly is "the algorithm of the category"?what i mean exactly is how it works..i want to add on my page a category each post.. but when i think how it will work im gonna mess me up..i need some idea how to do this? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 19, 2011 Share Posted August 19, 2011 If you want to store categories and posts in a database, then you need a table for each, a table for categories and a table for posts. Each table needs an ID, you need a category ID and a post ID, plus any other fields you want to keep track of. The posts table should have a field for the category ID, which says which category the post is in. If you want to have categories inside categories, then the categories table should have a field for the parent category ID. If that field is 0 then the category doesn't have a parent, or else it has the ID of the parent category. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.