<?php
                if($row["lat"] > $id[$counter][2]) {
                    $lats = $row["lat"] - $id[$counter][2];
                } else {
                    $lats = $id[$counter][2] - $row["lat"];
                }
                if($row["lng"] > $id[$counter][3]) {
                    $lngs = $row["lng"] - $id[$counter][3];
                } else {
                    $lngs = $id[$counter][3] - $row["lng"];
                }
                if($lats <= 0.0003 && $lats >= 0) {                
                    $confirm++;
                }
                if($lngs <= 0.002 && $lngs >= 0) {
                    $confirm++;
                }
    ?>
I'm trying to take two coordinates, subtract them for each other, then check if within area. If within area, confirm for future processing. But Im getting a T_STRING error right in the section starting at the IF statement. Im almost positive this is a conversion problem.
 
     
    