Código PHP:
'preciouni'
Código PHP:
$queEmp = "SELECT preciouni,casitotal FROM productos where rfc='$rfc' ";
$resEmp = mysql_query($queEmp, $conexion) or die(mysql_error());
$totEmp = mysql_num_rows($resEmp);
$ixx = 0;
while($datatmp = mysql_fetch_assoc($resEmp)) {
$ixx = $ixx+1;
$data[] = array_merge($datatmp, array('num'=>$ixx));
}
$titles = array(
'preciouni'=>'<b>Precio</b>',
'casitotal'=>'<b>Total $</b>'
);
$options = array(
'shadeCol'=>array(0.9,0.9,0.9),
'xOrientation'=>'center',
'width'=>500
);
Código PHP:
pdf->ezText($txttit, 12);
$pdf->ezTable($data, $titles, '', $options, $titles2);