0
I have an id that appears in several tables but, I need to delete it in the main page and delete it in all other tables as well. ex :
DELETE FROM admissao_dominio.*, admissao.*, bancarios.*, boas_vindas.*, documentacao.*, exame_admissional.*, gestao.*, interno.*, parametros_captacao.*, propostas_contratacoes.*, sede.*, suporte_interno.*, tipo.*, usuario_atv.*, vencimentos.*, vias_documentos_funcionarios
WHERE EMAIL = '{$_GET['id']}'";
It’s wrong but it’s like something like this that I need.
Do these tables have relationships with each other? If they relate, you can delete using Inner Join.
– Ricardo Alves
yes they are all linked by the id_user, or by some other call, type is a user registration and the data appear in different places, but when I click delete I need to delete from all tables
– Heitor Santos
Take a look at this here, is very likely to solve your problem.
– Ricardo Alves