Ver Mensaje Individual
  #5 (permalink)  
Antiguo 12/11/2010, 03:38
Vallu
 
Fecha de Ingreso: marzo-2010
Ubicación: Barcelona
Mensajes: 657
Antigüedad: 14 años, 1 mes
Puntos: 26
Respuesta: Ayuda novato php

No te has olvidado poner el simbolo del dólar en la variable $aux?

Igualmente prueba esto:
Código PHP:
$aux=$totalamount;
$taxrate 0.10;  // local sales tax is 10%
$totalamount $totalamount * ($taxrate);
$aux=number_format($totalamount-$aux2);
$totalamount number_format($totalamount2);
echo 
"Total impuestos IGIC 10%   :      " $aux "   €" "<br>";
echo 
"Total incluyendo impuestos: €".$totalamount."<br>\n"