Jump to content

storing a decimal number


Woodburn2006

Recommended Posts

i am storing lap times in a DB using a PHP based form. if i enter the number 32.45 in the form and send it to the DB it only stores it as 32, but when i manually enter it usng PHP myadmin it works fine.

 

i have the column format set as 'float' and have tried decimal, what is the best format to use?

Link to comment
https://forums.phpfreaks.com/topic/78252-storing-a-decimal-number/
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.