Very good friends, I have a question:
I have the following table:
<div class="container">
<table class="table">
<thead>
<tr>
<th scope="col">Fecha</th>
<th scope="col">Concepto</th>
<th scope="col">Debe</th>
<th scope="col">Haber</th>
<th scope="col">Intereses</th>
<th scope="col">Saldo</th>
</tr>
</thead>';
if(mysqli_num_rows($resultquery1)>0){
while($row1=mysqli_fetch_array($resultquery1)){
echo ='
<tbody>
<tr>
<th scope="col" colspan="6" class="text-center">'.$row1['user_uid'].'
</th>
</tr>
<tr>
<td>'.$row1['pcm_fecha'].'</td>
<td>'.$row1['pcm_concepto'].'</td>
<td>'.$row1['pcm_debe'].'</td>
<td>'.$row1['pcm_haber'].'</td>
<td>'.$row1['pcm_interes'].'</td>
<td>'.$row1['pcm_saldo'].'</td>
<td>
<button type="button"class="btn btn-xs btn-danger btn_delete">X</button>
</td>
</tr>
</tbody>
<tr class="success">
<th colspan="2" class="text-center">Totales</th>
<td>'.$pcm_debe.'</td>
<td>'.$pcm_haber.'</td>
<td> '.$pcm_interes.'</td>
<td> '.$pcm_total.'</td>
<td></td>
</tr>
';
}
}else{
echo ='
<tr>
<td colspan="6">No hay datos para mostrar</td>
</tr>
';
}
</table>
</div>
at the moment it looks like this:
How can I make the client name (user_uid) Stay on top of me?
My $ row1 ['user_uid'] can not be used outside of my while loop: (
That something like this remains:
Thanks for your time.