I have the following query of inclusion of registers
mysqli_query($conexao,"INSERT into cadastro set nome='$nome',telefone='$fone',cep='$cep',secao='$categoria'");
How do I not have to give a select in the last inserted data to get the generated id? because I already had problems with multiple users putting information into the system at the same time and returned wrong value.