Hi
I have to write a new database where people and their skills are linked. Each person may have many skills, each skill may belong to many people. A classic many to many relationship.
So, I have 3 tables, members, skills, and smf_memskill
I want the main table to be Members, but I would like each member to have links to many skills.
The smf_memskill table has the following field structure
-- Table structure for smf_memskill
-- ----------------------------
CREATE TABLE `smf_memskill` (
`ID_MEMSKILL` mediumint(8) NOT NULL auto_increment,
`ID_MEMBER` mediumint(8) default NULL,
`ID_SKILL` mediumint(8) default NULL,
PRIMARY KEY (`ID_MEMSKILL`),
KEY `ID_MEMBERS` (`ID_MEMBER`),
KEY `ID_SKILL` (`ID_SKILL`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='InnoDB free: 5120 kB';
So this table has a unique key and each record links one member and one skill.
How do I set this up in PHPR to give me a table where I can look at the list of members and by hovering over the link, see a brief list of their skills, but also search for a skill and see all the members with that skill.
Am I getting into the realms of custom code here, or is there a template ideally suited to this application?
TIA