note 90393 added to function.mysql-fetch-assoc
| From: | skimz1athotmaildotcom at osu1 dot php dot net | Date: | Mon, 20 Apr 2009 00:25:25 +0000 |
| Subject: | note 90393 added to function.mysql-fetch-assoc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-153504@lists.php.net to get a copy of this message | ||
Apparently, the php-mysql functions always return results as strings, including values from numeric
fields.
This causes issues for those users who need the results to be properly typed.
An example of this is passing the results array to 'json_encode()' function; it makes life
much easier if numeric values are correctly represented as numbers in the resulting json output.
Is there a reason why the php mysql* functions are setup to return everything as a string?
How could this be submitted as a feature request?
(correct typing of values in db query results)...
----
Server IP: 148.206.80.9
Probable Submitter: 187.153.85.148
----
Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-assoc.php
Edit -- https://master.php.net/note/edit/90393
Del: integrated -- https://master.php.net/note/delete/90393/integrated
Del: useless -- https://master.php.net/note/delete/90393/useless
Del: bad code -- https://master.php.net/note/delete/90393/bad+code
Del: spam -- https://master.php.net/note/delete/90393/spam
Del: non-english -- https://master.php.net/note/delete/90393/non-english
Del: in docs -- https://master.php.net/note/delete/90393/in+docs
Del: other reasons-- https://master.php.net/note/delete/90393
Reject -- https://master.php.net/note/reject/90393
Search -- https://master.php.net/manage/user-notes.php