Image upload insert/read from DB

Hello Folks,

I have two tables table A for information table B for images, and I want upload images more than one to folder upload, I wanna save images path in table B in path field with id for the Product in Table A save it in idA field in table B, each Product has many images for example two. At the end I wanna display all images for Product where is the B.idA=A.id just an example.

Table A:

Id

Product


Table B:

id

idA

path


idA is Fk in table B.

Could you please advice and give me examples?

Thanks a lot for your support…

Anyone can guidance me?