1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| private void button6_Click(object sender, EventArgs e)
{
if (radioButton1.Checked)
{
//int b=Convert.ToInt32(textBox3.Text);
string MyConString = "SERVER=localhost;" + "DATABASE=gestion_de_stock;" + "UID=root;" + "PASSWORD=;";
string sql = (" update article set quantite=quantite+'"+textBox3+"' where id_article = '" + comboBox2.SelectedText+ "';");
MySqlConnection connection = new MySqlConnection(MyConString);
connection.Open();
MySqlCommand cmdSel = new MySqlCommand(sql, connection);
}
if (radioButton2.Checked)
{
}
} |
Partager