1
I need to delete records coming 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 bank is 192.
The variable
$IdFase
is from PHP, right?– KaduAmaral
Hello @Kaduamaral, that’s right, is a php variable.
– adventistapr