private void btn_update_Click(object sender, EventArgs e) { string RegNumber = textBox2.Text; DBconnect db = new DBconnect(); db.Update($"UPDATE students SET RegistrationNumber={RegNumber} WHERE Name='john'"); }
private void UpdatebunifuFlatButton_Click(object sender, EventArgs e) { DBconnect dBconnect = new DBconnect(); dBconnect.Update($"UPDATE customers SET Mobile={bunifuMaterialTextbox2.Text},Address={bunifuMaterialTextbox3.Text},Picture={pictureBox1.Image} WHERE CustomerName='{bunifuMaterialTextbox1.Text}'"); }