I am using a mysql database, the field format is Decimal (7,2)
and it receives the salary value.
Based on what the user types I store in the bank like this:
str_replace(',','.', $_POST['txtSalario'])
Substituting the comma by period.
The problem is that if he type ex: 3,145,89, the database refuses because he understands that the first point is already the decimal place.
How to handle this data entry to receive values typed as 3145.89 or 3.145.89?
I'm using PHP 5.3
and mysql 5.5