mysql - How to store a value of the form 2.00 in databse in php? -


hii new in php , want store value 2.00 in database, storing 2 in database, used datatype int,double,float,decimal, no 1 works, please me sort out problem. in advance

something decimal (10,2).

you can adjust scale , precision fit needs of numbers need store

for ex:example: decimal(5,2) number has 3 digits before decimal , 2 digits after decimal


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -