Re: [PHP] Converting to integer

2004-11-16 Thread Richard Davey
Hello Octavian, Tuesday, November 16, 2004, 12:53:24 PM, you wrote: OR> I have tried using the function is_numeric to test which of the values OR> returned from MySQL are numbers, but none of them appear to be a number, so OR> I cannot convert them. Because, unless you cast it otherwise, MySQL a

[PHP] Converting to integer

2004-11-16 Thread Octavian Rasnita
Hi all, I get some values from a MySQL table and some of them are in the format 1000.0, 234.0, etc. I want those values converted as 1000, 234, and so on, but the other string values need to remain the same. I have tried using the function is_numeric to test which of the values returned from MyS