Jump to content

DB Field Question?


Skipjackrick

Recommended Posts

Currently I have a field on my db table called

 

"length"

 

Its set to "INT (255)"

 

Well, lets say I have a length of "22.5" inches. 

 

When I enter "22.5" inches into the form it automatically rounds the number to "23" and stores it that way in the db.

 

What would I change my field type to in order to accept decimal places???  Yet, still treat it as a number and not text?

 

Link to comment
https://forums.phpfreaks.com/topic/98348-db-field-question/
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.