Re: [PHP] Problems with strings being handled like numbers

2005-09-15 Thread J B
On 9/14/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > mssql_* and PHP "know" that the data is supposed to be "integer" > > But the largest integer that PHP can store is 0x. > > So when PHP tries to accept the "integer" from mssql_fetch_row, it's > got no room to store it as integer, and

Re: [PHP] Problems with strings being handled like numbers

2005-09-14 Thread Richard Lynch
On Tue, September 13, 2005 7:48 pm, J B wrote: > On 9/13/05, Chris <[EMAIL PROTECTED]> wrote: >> >> Are you sure you're getting the number as you need it from the >> query? >> >> PHP won't (though I guess there could be a bug) automatically >> convert a >> numerical string into it's numerical equiv

Re: [PHP] Problems with strings being handled like numbers

2005-09-13 Thread Jasper Bryant-Greene
J B wrote: I've been playing with it and it looks like mssql_fetch_row may be the problem. Right after this line: $line = mssql_fetch_row($result); ...I inserted this line: var_dump($line[0]); ...and this is what I got back: string(20) "3.67124100206018e+17" The actual contents of that ce

Re: [PHP] Problems with strings being handled like numbers

2005-09-13 Thread J B
On 9/13/05, Chris <[EMAIL PROTECTED]> wrote: > > Are you sure you're getting the number as you need it from the query? > > PHP won't (though I guess there could be a bug) automatically convert a > numerical string into it's numerical equivalent. > > If the code you posted produces this problem,

Re: [PHP] Problems with strings being handled like numbers

2005-09-13 Thread Chris
Are you sure you're getting the number as you need it from the query? PHP won't (though I guess there could be a bug) automatically convert a numerical string into it's numerical equivalent. If the code you posted produces this problem, then the only possiblities I see are that the mssql modu

[PHP] Problems with strings being handled like numbers

2005-09-13 Thread J B
I suspect I'm far from the first person to have this problem, but I can't seem to find the right search terms to locate the solution. Basically, I'm doing a database query and dumping the results into an array. Then, later, when I try to display the contents of the array, I run into problems. O