I keep an error, which say unclosed string literal
String sqlStatement=("INSERT INTO Customer(Customer_name, Address1, Address2, DayPhone, MobilePhone, AccountNumber, Email, Sort_code, Username, Password)VALUES ("+s1+","+s2+","+s3+","+s4+","+s5+","+s6+","+s7+","+s8+","+s9+","+s10+")");can anyone help!
[272 byte] By [
mar-k-a] at [2007-11-26 18:57:16]

# 1
Look at the first ", it should not be there.VALUES ("+s1+","+s2+","+s3+","+s4+","+s5+","+s6+","+s7+","+s8+","+s9+","+s10+")");Should be:VALUES (s1+","+s2+","+s3+","+s4+","+s5+","+s6+","+s7+","+s8+","+s9+","+s10+")");
# 5
> Zadok, whats the difference, thanks for the responseLook closely:the first "+ should not be there.Either way, instead of removing it, I highly, highly recommend you use a PreparedStatement instead.