I just want to ask if there is any PHP/MySQL datatype that can store a number with a comma and decimal such as 10,000.35
when the user hit the save button with this value, it should be stored in a MySQL table and the system can retrieve it also to be processed as number 10000.35
thanks for any help!
That would be a
CHAR/stringdatatype.Numeric values don’t have formats. They only contain the numeric value. Commas are not relevant for numeric computation. Format the values on output using, for instance,
number_format. That’s the only time a comma is relevant, it does not need to be stored.