My problem is to leave the first INSERT field empty, (if I fill in the program), in my phpmyadmin the ID field is AUTO_INCREMENT, but without modifying that part of the code, it stopped.
Code:
$sql = "INSERT INTO usuarios VALUES ('','$user','$sobrenome','$sexo','$nascimento','$senha','$email','$foto','$status')";
$busca = mysqli_query($link,$sql);
$afetado = mysqli_affected_rows($link);