-1
I wanted to create an imagem_prod field and do the Insert, as I do?
images are in this folder C:/xampp/htdocs/(project/img/products)?
CREATE TABLE produtos (
id int NOT NULL auto_increment primary key,
nome varchar(255) NOT NULL,
preco decimal(10,2) NOT NULL
) ENGINE=InnoDB;
INSERT INTO produtos (nome, preco) VALUES
('Presente Amor Completo', '139.99'),
('Arranjo Luz e Amor', '89.99'),
('Buquê 12 Rosas Vermelhas', '119.99'),
('Arranjo Nobre de Orquideas Lilases', '150.00');
A string containing the full text of the path to the image?
– anonimo
You could show how the structure looks with a field like this?
– user456711
varchar path(1024).
– anonimo
and how it looks in the?
– user456711
It is a text like any other text.
– anonimo
could you write, please? I don’t know how the structure of a field’s Insert looks like.
– user456711
INSERT INTO products (name, price, image) VALUES ('Present Complete Love', 139.99, 'C:/xampp/htdocs/project/img/products/prodx.jpg'); or something similar.
– anonimo
thanks, I’ll test.
– user456711