I need to get information from another table and append to another table with more info from a php variable I've been researching and some forms I've found was:
INSERT INTO tabProdutos ( id, descricao, unidade, qtd, valor) VALUES (‘$id’, ‘
(SELECT cod, descricao, unidade, qtd, valor FROM tabInfoProd WHERE cod = $cod ’);
But nothing happened
What could be wrong? Thank you.