Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/06/2009, 13:23
obedabdias
 
Fecha de Ingreso: febrero-2009
Mensajes: 199
Antigüedad: 15 años, 2 meses
Puntos: 3
ayuda para generar pdf

Tengo el siguiente codigo, se ejecuta bien pero mi dato que estaigo es numerico y seimprime tal y como estas 1000000 pero quisiera que se imprimiera 1,000,000.00 y no se como hacerlo el dato esta contenido en
Código PHP:
'preciouni' 
en el array


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($txttit12);
$pdf->ezTable($data$titles''$options$titles2);