Paul Sturrock wrote:
String sql = "insert into login_detail set name='"+username+"'+ password='"+password+"'";
looks like it may just be a poor quality error message from MySQL. This would resolve to the SQL statement:
Which is invalid SQL. My guess is your use of the plus sign make MySQL think its dealing with numeric fields.