I'm not sure how to identify the error. I've always built such structures, but now that error is appearing.
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)
$inserir = $conexao->query("INSERT INTO cadastro (nome, sobrenome, email, senha, contrata, trabalha, status) VALUE (
$_POST['nome'],
$_POST['sobrenome'],
$_POST['email'],
password_hash($_POST['senha'], PASSWORD_DEFAULT)."\n",
$_POST['contrata'],
$_POST['trabalha'],
'N'
)");
I'M USING THESE VERSIONS:
PHP = 7.1.6
MySQL = 5.7.11