[Solved] how to upload images in a table field in my [closed]


Don’t store images in your database, just store the references to them (file names or paths). If there will be more than one image per movie, then you will have a table representing this one-to-many relation:

CREATE TABLE movie_images (movie_id int, image varchar(255));

For each image, insert a row:

INSERT INTO movie_images (movie_id, image) VALUES (1, 'preview.png');
INSERT INTO movie_images (movie_id, image) VALUES (1, 'poster.png');
INSERT INTO movie_images (movie_id, image) VALUES (1, 'trailer.png');

4

solved how to upload images in a table field in my [closed]