php - jQuery currency spinner - "normalization" -
i want use jquery spinner currency value (i.e. money), value of might in dollars, euros, or supported spinner.
the data should saved mysql database, in 1 col save currency, in value.
the problem not sure on how this. better save data in format provided spinner (therefore saving varchar), or should take step of normalizing values in , reconverting according currency when out db? note perform calculations (simple algebra) on data, values of same currency.
if want calculations inserted data, it's better store without , . / $
. , wherever want show data, change currency format.
Comments
Post a Comment