Tema: Decimales
Ver Mensaje Individual
  #6 (permalink)  
Antiguo 10/02/2010, 05:34
thi
 
Fecha de Ingreso: abril-2009
Mensajes: 244
Antigüedad: 15 años, 1 mes
Puntos: 0
Respuesta: Decimales

He probado todos los tipos(DECIMAL, DOUBLE) y sigue sin funcionar.

Os pongo el codigo php:
print "<th>Precio Desde:(ejem: 9999,99)<br/><input type='text' size='28' name='precio' value='' tabindex='8' /><font color='#ff0000'><b> *</b></font></th>";

$query = "INSERT INTO Ofertas (Proveedor, Codigo, Denominacion, actividadprin, Fecha_inicio, Fecha_fin, Fecha_caduca, Agencias, Imagen_oferta, Precio, Origen, destino_zona_geo, destino_pais, destino_local, Fecha_publica, Ultima_hora, salidaespecial) VALUES ('".$my->username."', '".$_POST['codi']."', '".$_POST['descri']."', '".$_POST['actividadtour']."',
'".$fechainisql."', '".$fechafinsql."', '".$fechacadusql."', '".$_POST['agencia']."', '".$archivo_bien."', '".$_POST['precio']."', '".$_POST['combo_origen']."', '".$_POST['desti_geo']."', '".$_POST['desti_pais']."', '".$_POST['desti_local']."', '".$fechapublicacion ."', '".$_POST['ultima_hora']."', '".$salida_especial."')";

$result = mysql_query($query);