Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/06/2009, 09:16
obedabdias
 
Fecha de Ingreso: febrero-2009
Mensajes: 199
Antigüedad: 15 años, 3 meses
Puntos: 3
Exclamación ayuda con codigo

El codigo es este, lo hace en un archivo pdf y la consulta se genera bien el problema esta que quiero que preciouni se muestre en formatto de unidades con number_format pero no se como hacerle alguien me podria ayudar porfavor

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:
[PHP]pdf->ezText($txttit12);
$pdf->ezTable($data$titles''$options$titles2); 
[/PHP]