I am trying to get MySQL decimal field types to work nice and I just can't figure it out. I send a $_POST['price']
field to a decimal field, for example 3.45
, and it always stores it as 3.00
.
What would I be doing wrong for it to not store the decimals?
Found the solution: PDO::PARAM for type decimal?
PDO has not decimal storing type, seems like something massive to miss out. Need to store it as a string not a numeric number.