Hi all,
I am new to this forum and also new to relational dB, although not new to single table MySQL dB implementation in web sites. This question is not about any server problems or errors, but rather, about how to use and insert into a many-to-many type table relationship.
I have attached an image of my ERD for the current version of my dB as well as an image of the form I am trying to use to insert new users into my dB.
Here is what the situation is and what I am trying to achieve. I have a members dB. Each of these members can be members of one or more airports, and at each of these airports, members can have access to one, two or all three of the services available. (all airports have the same services available). I am trying to create a form which creates the new user record and also inserts the appropriate data into the userairportservces linking table. What is confusing me is that while we are creating a single user and associated usr_id, we need to insert up to three records into the linking table .. one for each service the member has access to. I am thinking it has something to do with transactions and triggers, but, being new to this, I am not sure how to do this.
I should also not, that while I can code PHP to a decent level, I would not call myself and advanced coder so I have been using the Adobe Developers Toolkit in DreamWeaver to work on this. But, I don't have to use it ... I just found it useful.
I really appreciate any help and time anyone can give me on this.
Regards,
Dave