PHP - get MySQL query results as their native data type?

Posted by redidas on Stack Overflow See other posts from Stack Overflow or by redidas
Published on 2010-03-12T05:15:46Z Indexed on 2010/03/12 5:17 UTC
Read the original article Hit count: 156

Filed under:
|
|
|
|

I've tried fetching MySQL query results using mysql_fetch_row() mysql_result() and numeric values are being returned as strings. Is there any way to fetch the data as its datatype stored in the table?

The application will be querying many different queries so I will be unable to cast the values as the intended datatype on a 1 by 1 basis.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about php