created edit function still getting invalid SQL statement error

created edit function still getting invalid SQL statement error