Some easier way to print all those results in a two column table with the respective column name of the data table, without the need to be printing variable by variable.
I'm using mysqli object oriented PHP, not using PDO, not this please: (fetchAll(PDO::FETCH_ASSOC);
).
$stmt->execute();
$stmt->store_result();
$stmt->bind_result(
$id_logtrama, $fechaHora, $idCliente,
$idEquipo, $statusGlobal, $temp,
$tempAmb, $hrelAmb, $presion,
$termopar1, $termopar2, $volt_fase1,
$amps_fase1, $frec_fase1, $fpot_fase1,
$volt_fase2, $amps_fase2, $frec_fase2, $fpot_fase2,
$volt_fase3, $amps_fase3, $frec_fase3, $fpot_fase3,
$status_temp, $status_tempAmb, $status_hrelAmb, $status_presion,
$status_termopar1, $status_termopar2, $status_volt_fase1,
$status_amps_fase1, $status_frec_fase1, $status_fpot_fase1,
$status_volt_fase2, $status_amps_fase2, $status_frec_fase2,
$status_fpot_fase2, $status_volt_fase3, $status_amps_fase3,
$status_frec_fase3, $status_fpot_fase3, $trama
);
while ($stmt->fetch()) {}