Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So, to be more detailed, I have made a database called pictures and have a table called images. I have it set up where the image is retrieved through a filepath. I have it also set up where the record column called"image Id" corresponds to the "record ID" this method somewhat works, the problem is if I open up another table, anything that has that record ID will show the pictures even though it's not meant for that record.

For instance, I have a table that called employees the first record is 1 and it corresponds to the image ID of 1. Now if I open another table lets say days off work, those same pictures would still correspond to record 1 even though it's not intended to. is there a better way to make sure that whatever images I want to see correspond to the correct record?

What I have tried:

I have researched, but I have yet to find a more appropriate answer to my question.
Posted
Comments
CS2011 22-Aug-17 1:32am    
can you show us the table structure and code you are using to access it ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900