Jump to content

Best way to store price's in database


bobby317

Recommended Posts

I'd use a column type 'DECIMAL( 10, 2 ) UNSIGNED'. Its a number type that will allow you to include cents. Unsigned because unless you want to pay the customer to take your products, your prices will probably always be positive values($4.99, not $-4.99). But I'm not an expert so yea... This is just what I've picked up.

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.