Jump to content

Best way to store price in MySQL


rcouser

Recommended Posts

Hello,

What is the best way to store price in MySQL?

Say for example I can be sure the that the price is a whole number and therefore use INT, how do I use php to change how the number is displayed on screen to the user.

For example: 47500 is store in database but £47,500.00 is what the user sees.

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/125334-best-way-to-store-price-in-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.