i found that error. we have to insert this one unless the database will not auto increment
ps.setObject(1,null);
Type: Posts; User: surendran610
i found that error. we have to insert this one unless the database will not auto increment
ps.setObject(1,null);
Statement stm=con.createStatement();
PreparedStatement ps=conn.prepareStatement("insert into regis values(?,?,?,?,?,?,?,?,?,?)");
ps.setString(2, username);
ps.setString(3, password);...