public int insertREg() { SqlCommand cmd = new SqlCommand(); cmd.CommandType = CommandType.Text; cmd.CommandText = "INSERT INTO Registration VALUES ('" + R_name + "','" + R_gender + "','" + R_dob + "','" + R_address + "','" + R_Level + "', '" + R_utype + "' ,'" + R_username + "','" + R_password + "' )"; return(con.ExeNonQuery(cmd)); }