The changes which i have made is mentioned below.
String sql = "INSERT INTO user(user,password) VALUES ('"+username+"','"+password+"' )";
String sql1 = "insert into user_info(FNAME,MNAME,LNAME, user)values('"+firstname+"','"+middlename+"','"+lastname+"','"+username+"')";

Thanks every one for Help.

Praveen Kumar Singh

PKS

Where all the women are strong, all the men are good looking and all the tiny ads are above average: