I'm running a query that selects records from within a range, for instance, if the number was 2.16, it would fall within the 1.901 to 2.9 range.
Unfortunately, this is not what is happening. Can someone tell me why, and how maybe I can work around it?
Here is my code:
/values from database would be: resolution_1_width = 1800, resolution_1_height = 1200 /
$digipage = 2;
$range = 0.099;
$end_range = 0.9;
$query = "SELECT camera_id, resolution_1_width, resolution_1_height
.
.
.
WHERE ((resolution_1_width * resolution_1_height)/1000000) BETWEEN $digipage - $range AND $digipage + $end_range";
Thanks for any help!