OK, I tried the str_replace.
It works, but it isn't particulary nice ....
So I understand the following:
I:
While I program in PHP
- $cost = 1.75;
- or I calculate something in PHP using $cost from the PHP code and $row['variable'] retrieved from the mysql database
=> it always gets printed using a "," for the decimal separator
II:
When I retrieve a value straight from the mysql database and print it direcly (without performing any calculation).
=> it always gets printed using a "." for the decimal separator
III:
When I want to save a variable (type decimal, eg $cost = 1.75😉 'defined' in PHP I need to replace the "," (that is somehow created by PHP) by "." to be able to update it into the mysql database.
?? Is there an easy way that all values get printed the same (without specifying it for each print)??
?? Is there a way I don't have to use "str_replace" before every update query ??
Thanx in advance for a nice solution....
Joost