Question
Currency in PHP or MySQL
I have made a database where I want to list certain items and
their prices. In MySQL I had set my prices to be the type to be
double. In my PHP when I type lets say 19.95 when I see it live on
my PHP page it shows $19.95 which is great and what I want. However
the problem lies when I want to list something that has 19.50 or
19.00 when viewing it in my PHP I see either 19.5 or 19. Is there a
way that I see the two decimal places whether there is a zero or
not.
How can I minipulate this whether in the MySQL or PHP.
Thank you,
AdonaiEchad
How can I minipulate this whether in the MySQL or PHP.
Thank you,
AdonaiEchad
