
Part of the application I am working on needs to show how a table of people are linked.
E.g.
Person A links to persons B,C and F
Person B links to persons A, C and D
Person C links to A and B
Person E doesn't link to anyone
I can see how to do this by having a links table that then relates on to the person table, but that isn't an elegant solution as the sue couls only see user names by clicking on the link name and then a tab in that link. I'd like to have a tab on the person form that displays the names of the people who are linked to that record along with the reason for the link.
E.g. for Andrew Manton
I've tried various ways to achieve this - and if I had MySQL 4.1+ I am sure I could achieve it using an EXIST clause - but I only have access to MySQL 4.0.3 on my server.
Any ideas?
Neil
E.g.
Person A links to persons B,C and F
Person B links to persons A, C and D
Person C links to A and B
Person E doesn't link to anyone
I can see how to do this by having a links table that then relates on to the person table, but that isn't an elegant solution as the sue couls only see user names by clicking on the link name and then a tab in that link. I'd like to have a tab on the person form that displays the names of the people who are linked to that record along with the reason for the link.
E.g. for Andrew Manton
Name | Link |
---|---|
Fred Bloggs | Part of project QWERTY |
John Smith | Part of project ASDFG |
Kerry Parker | Contact of Andrew Manton |
Simon Smale | Part of project QWERTY |
I've tried various ways to achieve this - and if I had MySQL 4.1+ I am sure I could achieve it using an EXIST clause - but I only have access to MySQL 4.0.3 on my server.
Any ideas?
Neil