Nella query devi mettere {$id} tra singoli apici: SELECT * FROM inventario WHERE Cod_prodotto='{$id}'
Regole del Forum