I would like to be able to check a to see if a value in a column of my SQL table is = 0. If true, then do something.
Here is the part of code in question:
foreach($value -> entryTable as $entry)
        {
            $pointsUpdate = $entry['entry']->points;
            $vehicleName = mysqli_real_escape_string($con, $entry['entry']->vehicle);
            $sqlLocationPoints = "SELECT * FROM `$className` WHERE `$location` = 0";
            mysqli_query($con, $sqlLocationPoints) or die(mysqli_error($con));
            if($sqlLocationPoints);
            {
                $sql = "UPDATE `$className` SET `$location` = '$pointsUpdate' WHERE Vehicle = '$vehicleName'";
                mysqli_query($con, $sql) or die(mysqli_error($con));
                $sql2 = "UPDATE `$className` SET `Total Points` = `Total Points` + '$pointsUpdate' WHERE Vehicle = '$vehicleName'";
                mysqli_query($con, $sql2) or die(mysqli_error($con));
            }
        }
