i ran into a really strange problem with storing values in MySQL. The premise:
I have a table that uses DECIMAL(15,8) to store monetary values (like the
Replace the , with . before inserting into db:
$value = str_replace( ',', '.', $value);
This will create a valid number, that can be safely inserted into the database. Or just add it just inside your query:
INSERT INTO `random_table_name` SET currency_value = '" . str_replace( ',', '.', $value ) . "'