Well I am trying to generate a pdf file, locally it is perfect, but when uploading it to this host that I am using tests I get the following error;
I consider that the error is not in the foreach, but at the moment of printing the data in the table td
foreach($sql as $key => $value){ //Linea 71 supuesto error
$html1= <<<EOF
<table style="font-size:13px; padding:5px 10px; border: 1px solid #666;" align="center">
<tr>
<td style="border-right: 1px solid #666; border: 1px solid #666;">$value[nombres]</td>
<td style="border-right: 1px solid #666; border: 1px solid #666;">$value[apellidos]</td>
<td style="border-right: 1px solid #666; border: 1px solid #666;">$value[correo]</td>
<td style="border-right: 1px solid #666; border: 1px solid #666;">$value[usuario]</td>
<td style="border-right: 1px solid #666; border: 1px solid #666;">$value[privilegio]</td>
</tr>
</table>
EOF;
$pdf->writeHTML($html1, false, false, false, false, ''); //Salida PDF
} //Cierre foreach
$pdf->Output('reporte.pdf', 'I');