how are you? I have a question, I want to enter a value from php, such as 155.60, but when I add it to the phpMyadmin database, it saves it as 155, that is, it rounds it, but I need it if or if I presicion it. Place FLOAT on the BD, also probe with REAL and DOUBLE. But it does the same. This is my code from php:
$sql="insert into productos (idProducto,Nombre_Producto, precio, Detalles, id_Tipo_Moneda,
id_Categoria, Stock, idEstadoEliminacion, CantidadAlarma )values(:codProd,:nombre, :pre, :det, :tmoneda,
:cat, :stock, :estelim, :Alarma)";
$sentencia = $con->prepare($sql);
$sentencia-> bindParam(':codProd', $codProd, PDO::PARAM_STR);
$sentencia-> bindParam(':nombre', $nom, PDO::PARAM_STR);
$sentencia-> bindParam(':pre', $pre, PDO::PARAM_INT);
$sentencia-> bindParam(':det', $det, PDO::PARAM_STR);
$sentencia-> bindParam(':tmoneda', $tMoneda, PDO::PARAM_STR);
$sentencia-> bindParam(':cat', $cat, PDO::PARAM_INT);
$sentencia-> bindParam(':stock', $stock, PDO::PARAM_INT);
$sentencia-> bindParam(':estelim', $estel, PDO::PARAM_INT);
$sentencia-> bindParam(':Alarma', $Alarma, PDO::PARAM_INT);
Could someone help me?