try {
Statement stmt = con.createStatement();
stmt.executeUpdate("INSERT into emailacc(fname,lname,uname,mail,passwd,passwd2,date,month,year) values('"+fname+","+lname+","+uname+","+mail+","+passwd+","+passwd2+","+date+","+selectMonth+","+year+"')");
out.println("<h3><font color='green'>Information Added Successfully.</font><br> You Are a registered User now.</h3><br>");
con.close();
} catch(Exception e) {
out.println("Exception caught : "+e);
}
爲什麼會發生? 上次我做了同樣的事情,但沒有發生,它有什麼問題?java.sql.SQLException:列計數與第1行的值計數不匹配Servlets錯誤或Mysql錯誤?
thanx大家! –