You have no idea how much I appreciate your replies and assistance. Thanks.
To answer your question, table2 is the bulk of the data (photos) and is really only related to table1 in the sense that when the webpage calls upon table1 for a model's data to be displayed based on 'table1.lmodel_id', the webpage queries table2 for 'table2.model_id' where 'table2.model_id = table1.lmodel_id' to display photos, text etc on the webpage.
This whole objective is to add an attribute to the table1 (called table1.modelwkrps) so that when a model has more than one photographer in her portfolio, I update that 'table1.modelwkrps' attribute.
Each photographer has a code (100, 101, etc). If the model has two photogrpahers in her portfolio, then 'table1.modelwkrps' would equal "100,101". Table3 is created to store the photographer contact info.
I know that table1 and table2 work very well together. I added table3 thinking this is the most efficient way to achieve this objective.
What I can do so far by myself is when the webpage calls up the models info 'table1.lmodel_id' it also retreives 'table1.modelwkrps' and it does display 100,101 but only as standard text.
What I am trying to do is get the web page to query table3 and to look through attribute 'table3.wrkpcode' for '100' and '101' individually, pull out the name and url info, and to display photographers contact info on each models page.
That's why I was thinking the loop was required. The query would select 'table3.wkrp_name' and 'table3.wrkp_url' in order to display the hyperlink text for photographer #100, then display hyperlink text for photographer #101.
So I don't think that last query to wrote is relavent, but I could be wrong.
Relevent attributes:
table1.modelwkrps // string variable of photographer codes for each model, string could contain just one code, or many codes (+30)
table3.wkrpcode // distinct numerical code for each photographer
table3.wkrp_name // photographers name
table3.wkrp_url // photographers url contact
I obviously could be missing something, so if you are lost on a piece of data, let me know. Thanks again.