A
A
Alexander2018-03-12 19:24:38
Database
Alexander, 2018-03-12 19:24:38

How to set multiple images on a product page in a database?

Such a situation: there is a base with a row, it has a column with a link to an image, this image is used as the main one in the catalog. For the product page (if there are several images), is it better to create a separate line in the database or can I somehow place it in the same one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
riot26, 2018-03-12
@riot26

Separate table. `product_images` (`product_id`, `file_path`)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question