1) In mysql engines, MyISAM Is Better Or InnoDB ?
2) i want programming a cms that it could add a post with multi category
how i must design my database to have a better performance with a few query ?
in php how can list posts which category for example = 1 ?
thank you
1) If you need foreign keys relations on DB level use InnoDB else use MyISAM
2) You can store all categories in one table with schema like that
with Category_ID primary key
3)
edit : Schema of post table (example)
Post_IDis primary key ofpoststable.note the Category_IDs is now
varcharstore value of categories in it like1,2,3if your post belongs to cateory 1,2 and 3.. and for deleting all posts belonging to category 1 you will run following query