Answer the question
In order to leave comments, you need to log in
What is the best way to implement a project photo?
There is a table with projects - projects. It contains projects. So. There is a need to implement a photo project. What is the best way to do this? Add a cell and store the photo id in it from the new photos table? Or add four photo cells to the projects table? If the former, how do I add photo ids if they haven't been created yet? How to implement?
Answer the question
In order to leave comments, you need to log in
I understand what you need with connections. You didn't understand the question. Here is a form with 4 photo fields, project name, etc. How can I add the project id to the photos table if it hasn't been created yet? How can I find the project that is being created in the output method? Or how is it done?
If each project already has four photos, then it is likely that there will be more than four in the future. It will be enough to make a one-to-many relationship between project-photos
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question