note 26170 added to ref.mysql
| From: | guillaume dot lapierre at iname dot com | Date: | Mon, 21 Oct 2002 11:54:06 +0000 |
| Subject: | note 26170 added to ref.mysql | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38354@lists.php.net to get a copy of this message | ||
mw-php at ender dot com said this is not a problem that php fetch functions return elements as
strings.
That's not totaly true.
I use setlocale() to use french dates and numbers.
If I have a float in a table then the fetch functions will return an english float (ie
"1.23" instead of "1,23") that I have to convert with
str_replace(".",",",$float_from_db).
If I can find a good workaround I will post it here.
--
http://www.php.net/manual/en/ref.mysql.php
http://master.php.net/manage/user-notes.php?action=edit+26170
http://master.php.net/manage/user-notes.php?action=delete+26170
http://master.php.net/manage/user-notes.php?action=reject+26170