Posted by David T. Ashley on 04/11/07 21:38
I have a box where I'm forced to use PHP before 64-bit integers became
standard ...
If I run a MySQL query where one of the fields returned is 64-bit integer,
how do I get this into PHP as a string? My recollection is that in the
result sets it "auto types" so that it is an integer, and 64-bit integers
will cause problems if one tries to assign into 32 bits.
P.S.--Once into PHP as a string, I would use the bcmath library to
manipulate it ...
--
David T. Ashley (dta@e3ft.com)
http://www.e3ft.com (Consulting Home Page)
http://www.dtashley.com (Personal Home Page)
http://gpl.e3ft.com (GPL Publications and Projects)
[Back to original message]
|