Good afternoon friends, I'm having a difficult time putting together a table with a result of 2 columns with database information.
<table style='width: 100%;' border='1' cellspacing='0' cellpadding='0'>
<thead>
<tr style='background-color: #CCCCCC;'>
<td style='text-align: center; width: 12.5%; height:20px'><h3>Equipamento locado</h3></td>
<td style='text-align: center; width: 12.5%;'><h3>Patrimônio</h3></td>
</tr>
</thead>
<tbody>
if($cliente->equipamento){
$array_equipamento = explode( "," , $cliente->equipamento ) ;
foreach ($array_equipamento as $value) {
$equipamento = $objeto_equipamento->busca_equipamento($value);
<tr>
<td style='text-align: center; width: 12,5%; height:20px'>$equipamento->nome</td>
<td style='text-align: center; width: 12,5%;'>$equipamento->patrimonio</td>
</tr>
}
}
</tbody>
</table>
<table>
<tr><td>coluna 1 </td> <td> Coluna 2 </td> </tr>
<tr><td> 1 </td> <td> 2 </td></tr>
<tr><td> 3 </td> <td> 4 </td></tr>
<tr><td> 5 </td> <td> 6 </td></tr>
<tr><td> 7 </td> <td> 8 </td></tr>
</table>
The numbers in the example represent the sequence of results for better understanding.