My (MySQL) tables have columns with currency values set as Decimal(10,2) with decimals separated by commas. However whenever i query them, php turns all my commas into periods and invalidates my results. Can I stop it doing that? It affects both my SELECT and my INSERT/UPDATE.
When I select, for example, 123,00 php turns it into 12300.00; same for inserting a number: i insert 123,00 but the value in the table becomes 12300,00 again. Is there a way to make comma the default decimal separator?
have you looked in to
http://php.net/manual/en/function.money-format.php