Jump to content

[SOLVED] Help!! insert into database problem.


chaiwei

Recommended Posts

Hi all,

 

I got a variable,

 

$value=number_format((math calculation) ,2)  which get the value // 46,000.29

 

mydatabase column to store this value is decimal (10,2)

 

But i when the time I insert in database,it only stored 46.00

it is because the , problem.

I try to remove the , by manually and insert the 46000.29

It works. It stored exactly the value.

What should I do.

 

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.