public static function encodeUpdateRecord($tableName, $fields, $values, $field, $value)
    {
        $query = "UPDATE $tableName SET";
        $size = sizeof($fields);
        foreach ($fields as $i => $column) {
            $query .= " $column = '$values[$i]'";
            if ($i != ($size - 1))
                $query .= ",";
        }
        $query .= " WHERE $field = '$value';";
        return $query;
    }