Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void button2_Click(object sender, EventArgs e)
- {
- label8.Text = textBox2.Text;
- label8.Visible = true;
- MySqlConnection connection = new MySqlConnection("datasource=localhost;port=3306;username=root;password=root");
- MySqlCommand command = new MySqlCommand("CREATE TABLE " + label8.Text + "(Team Name VARCHAR(20) NOT NULL, Wins INT(2) NULL, Place INT(2) NULL AUTOINCREMENT", connection);
- connection.Open();
- command.ExecuteNonQuery();
- textBox3.Enabled = true;
- connection.Close();
- }
Add Comment
Please, Sign In to add comment