For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > July 2005 > Re: [PHP-DB] floats









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] floats
balwant singh

2005-07-24, 8:21 pm

i run this query at my end, its running... pls check whether you gave
the field names properly.

With Best Wishes

Balwant Singh


blackwater dev wrote:

>I am running a query on MySQL:
>
>select * from cars where id =52
>
>It returns the row and I can see that gas mileage is saved as a float
>with a value of 23.45. So I then do a query, select * from cars where
>id=52 and gas_mil=23.45 and the query doesn't retun anything. Why?
>Do I have to cast this as a float?
>
>Thanks!
>
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com