1
I’m having trouble inserting data that has related tables.
$sqlinsert2 = "INSERT INTO tb_detalhe_trabalhador VALUES(0,NULL,NULL,'".$MedicaValidade."',..
Currently the data that are as NULL are the fields related to the Table.
tb_details_worker:
`id` int(11) NOT NULL AUTO_INCREMENT,
`tb_trabalhador_id` int(11) DEFAULT NULL,
`tb_funcoes_id` int(11) DEFAULT NULL,
`MedicaValidade` date DEFAULT NULL,
`MedicaAnexo` longblob,
(...)
It is difficult to answer your question without having the DDL of the tables. You can edit your question with the same?
– Rodrigo Rigotti