lab6
.pdf
Teacher(name_teacher,surname_teacher,father_teacher,telephone_teacher,login_t eacher,password_teacher) VALUES( '" + rname + "', '" + rsurname + "', '" + rfathername + "', " + rtelephone + ", '" + rlogin + "', '" + rpassword + "')";
}
else if (srole == 2)
{
sqlq = "INSERT INTO Child(name_child,surname_child,father_child,telephone_child,login_child,passw ord_child) VALUES( '" + rname + "', '" + rsurname + "', '" + rfathername + "', " + rtelephone + ", '" + rlogin + "', '" + rpassword + "')";
}
else if (srole == 3)
{
sqlq = "INSERT INTO Parent(name_parent,surname_parent,father_parent,telephone_parent,login_parent ,password_parent) VALUES( '" + rname + "', '" + rsurname + "', '" + rfathername + "', " + rtelephone + ", '" + rlogin + "', '" + rpassword + "')";
}
Label17.Visible = true;
var mycom = new OleDbCommand(); mycom.CommandText = sqlq; mycom.Connection = connect; mycom.ExecuteNonQuery(); connect.Close();
}
}
}
11
