Esqueci de atualizar essa pendencia, fiz uma blank com o select e com uma logica simples de for deu certo, obrigado a todos pelo auxilio.
sc_lookup(TabDin, $Dinamica);
$colunas = (count({TabDin}));
<table class="table table-bordered table-hover">
<thead class="thead-dark">
<tr>
<th scope="col"> </th>
<?php
for ($i = 0; $i < $colunas; $i++) {
?>
<th scope="col"><?php echo({TabDin[$i][0]}); ?></th>
<?php
}
?>
</tr>
</thead>
<tbody>
<?php
for ($j = 0; $j < $colunas; $j++) {
?>
<tr>
<th scope="row"> <?php echo({TabDin[$j][0]}); ?> </th>
<?php
for ($x = 0; $x < $colunas; $x++) {
$y = $x+1;
?>
<td><?php echo({TabDin[$j][$y]}); ?></td>
<?php
}
?>
</tr>
<?php
}
?>
</tbody>