我正在尝试将html表转换为pdf,我正在使用TCPDF但是当我执行它时,网站显示此错误(解析错误:语法错误,意外'<' in / home2第87行/ecovomxp/public_html/cotizador/pdf.php)有人可以帮我查找错误吗?
$html = '
<table>
<thead>
<tr>
<th>Tecnología</th>
<th>Norma de especificación</th>
<th>Imagen</th>
<th>Marca</th>
<th>Modelo</th>
<th>Descripción</th>
<th>Precio unitario</th>
<th>IVA</th>
<th>Instalación</th>
<th>Costo total</th>
<th>Garantía</th>
<th>Cotizar</th>
</tr>
</thead>
<tbody>';
$i = 0;
foreach($records as $r) {
$html .= '<tr>
<td>'.<?php echo escape($r->tecnologia); ?>.'</td>
<td>'.<?php echo escape($r->normaespecificacion); ?>.'</td>
<td><img src="functions/'.<?php echo escape($r->foto); ?>.'"></td>
<td>'.<?php echo escape($r->marca); ?>.'</td>
<td>'.<?php echo escape($r->modelo); ?>.'</td>
<td>'.<?php echo escape($r->descripcion); ?>.'</td>
<td>$'.<?php echo escape($r->preciounitario); ?>.'</td>
<td>$'.<?php echo escape($r->iva); ?>.'</td>
<td>$'.<?php echo escape($r->instalacion); ?>.'</td>
<td>$'.<?php echo escape($r->totalcosto); ?>.'</td>
<td>'.<?php echo escape($r->garantia); ?>.'</td>
<td><input type="text" value="0" class="imp" size="2" /></td>
</tr>';
<?php
$i = $i+1;
}
?>
$html .= '</tbody>
</table>';
答案 0 :(得分:1)
正如Geoffrey Mureithi所说 - 这是语法错误 -
UIView* loadingView;
- (void)viewDidLoad {
[super viewDidLoad];
[self setNeedsStatusBarAppearanceUpdate];
}