Hi, I'm a Php novice. I need to perform a function based on whether a sqlquery result is a float value or not. I can do it with any variable but query results.

I don't know what the reason is for this and have wasted all day on it!
Any help would be fantastic. Cheers!

Recommended Answers

All 2 Replies

Hi thanks for the reply. I've tried using the is_float function but to no avail. It works fine for normal variables but not for the query variable. Does anyone know any reason this would be happening?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.