Re: [PHP-DB] floats

2005-07-19 Thread balwant singh
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

[PHP-DB] floats

2005-07-19 Thread blackwater dev
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 a