I need to delete records from my database but I am not able to pass the variable to perform the operation, I am not able to concatenate the variable in my code, I did the following:
$aretorno["tabela"] .= '<td align="center"><button type="button" class="close" aria-hidden="true" onclick="DlgExcluirNota($IdFase)" data-toggle="tooltip" data-placement="auto" title="Excluir nota"><span class="glyphicon glyphicon-trash"></span></td> ';
The message on my console is this:
Uncaught ReferenceError: $IdFase is not defined
onclick @ DetalhesContrato.php:1
The existing Id in the database is 192.