Zaxnyd Posted June 7, 2006 Share Posted June 7, 2006 I'm working with 3 groups of data (currently as multidimensional arrays): doctors, procedures, locations.Each of these need to have knowledge of the other 2. For example, doctors need to know their locations and procedures, locations need to know their doctors and procedures, and procedures need to know which doctors do them as well as where they're offered.I've tried creating classes, etc, but it's still not all falling together as I'd like. Does anyone have any suggestions for a better method of organizing this data? Classes perhaps?Thanks [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /] Quote Link to comment https://forums.phpfreaks.com/topic/11452-whats-the-best-method-of-organizing-this-data/ Share on other sites More sharing options...
nogray Posted June 8, 2006 Share Posted June 8, 2006 When I organize data, I got from the outside to the inside. I am not sure if your doctors can have multiple locations, but that how will I do it.Location:ID, fields......Doctors:ID, Location, fields...... // Location is the location ID from the location tableProceduresID, Location, fields..... // Location is the location ID from the location tableand now to link the doctors to the proceduresDoctors_x_ProceduresID, Doctor, Procedures // Doctor is the doctor ID from the location table. Procedures is the procedures ID from the procedures table. Quote Link to comment https://forums.phpfreaks.com/topic/11452-whats-the-best-method-of-organizing-this-data/#findComment-43007 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.