Here's the problem: I have many authors who have done many publications, though it is not always one author each publication, it is usually about three authors to one. Of course these three seperate authors work on other papers also. Now this looks like a many-to-many relationship to me, and that is fine and good, but I have no idea how to implement the whole process. I know a couple of things, like that I need a lookup table between authors and publications, but I'm very inexperianced with such a system. This is what I need help with:
When I insert the authors and publications how do I pass the primary keys from both to the lookup table, since MySQL needs to assign them both the keys first? What is a good design for this kind framework? Should I first make a page that shows all the authors and then a link next to the author that says "add publication" which takes me to a page where I can pick from the available publications? Or vice versa? Would that even work?
I know, that all sounds very confusing, but I guess what I'm looking for is a plan to go off of, or an example, even theoretical, that someone has done before.
Hope someone can help. I can provide more details if need be.
When I insert the authors and publications how do I pass the primary keys from both to the lookup table, since MySQL needs to assign them both the keys first? What is a good design for this kind framework? Should I first make a page that shows all the authors and then a link next to the author that says "add publication" which takes me to a page where I can pick from the available publications? Or vice versa? Would that even work?
I know, that all sounds very confusing, but I guess what I'm looking for is a plan to go off of, or an example, even theoretical, that someone has done before.
Hope someone can help. I can provide more details if need be.