Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/02/2008, 11:57
joelmg
 
Fecha de Ingreso: febrero-2008
Mensajes: 80
Antigüedad: 16 años, 2 meses
Puntos: 0
Re: FORMARTEAR CAMPO TIPO decimal(11,2)

hola lucasarts_18:

Intente lo que me dices pero por alguna razon no me esta funcionando

Aqui esta mi codigo:

Hacemos la conexion....

Código PHP:
$sql="SELECT number_format(TORD_GRAV_2,2,',','.') 
FROM tdsord1 WHERE TORD_FOL = '"
.$_GET['id']."'
"
;
$result4mysql_query($sql) or die(mysql_error());
if(
mysql_num_rows($result4)==0) die("");

$result4 mysql_fetch_assoc($result4);


echo 
"<font color=red ><strong>IMPORTE TOTAL A PAGAR = $result4[TORD_GRAV_2]<br></strong></font>"