I need to get the client's name listed in a list, and when I click on a button or the customer's own name, the customer's name appears, but I have no idea how to proceed. I tried to show the data in a popup, but also to no avail.
There are two fields name the action, the difficulty itself is in the action field.
Here is the code you have done so far:
<table id="data-table" class="table">
<thead>
<tr>
<th>Nome</th>
<th>Ação</th>
</tr>
</thead>
<tbody>
<?php
$campanha = $_SESSION['campanha'];
$query = sprintf("select int.start_time,int.nodename, int.dtmf,int.acao,cont.nome from ivr_interacao int , ivr_contatos cont where int.codigo = 798777 and cont.codigo = 798777");
$result = Populator::ConsultaDB($query);
$cont = 0;
while ($resultado = pg_fetch_array($result) ) {
$nome = $resultado['nome'];
$acao = $resultado['acao'];
$tempo = $resultado['start_time'];
$cont = $cont + 1;
echo '
';
}
?>
<tr>
<td><?php echo $nome; ?></td>
<td></td>
</tr>