I want to store 3.50 into a mysql table. I have a float that I store it in, but it stores as 3.5, not 3.50. How can I get it to have the trailing zero?
To store values you can use a DECIMAL(10,2) field, then you can use the FORMAT function:
SELECT FORMAT(`price`, 2) FROM `table` WHERE 1 = 1