You don't store currency data formatted with commas. You simply store it as FLOAT(11,2), or whatever number of leading digits you want plus two decimals.
You format currency only upon output. This is because you want to be able to perform calculations on it while in the database. Fortunately, the wise PHP devs have foreseen this need and given us a nice little function called number_format() (
"Calculus is just the meaningless manipulation of higher symbols"
-unknown F student
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.