ich bekomme bei meinem Programm immer den Fehler: Column count doesnt match value count at row 1.
Der Code:
Code:
private void button10_Click(object sender, EventArgs e)
{
string insertQuery = "INSERT INTO forgottensouldb.tanks(`ID`,`Discord Name`,`Join Date`,`Character Name1`,`Realm`,`Class and Spec`,`Character Name2`,`Class and Spec2`,`Bench Player`,`Performance`,`Too late`,`Not excused Absence`,`Other notes`)VALUES('" + textBox1.Text + "', '" + textBox2.Text + "', " + textBox3.Text + textBox4.Text + "'," + textBox5.Text + textBox6.Text + "', " + textBox7.Text + textBox8.Text + "'," + textBox9.Text + textBox10.Text + "', " + textBox11.Text + textBox12.Text + "'," + textBox13.Text + "')";
connection.Open();
MySqlCommand command = new MySqlCommand(insertQuery, connection);
try
{
if (command.ExecuteNonQuery() == 1)
{
MessageBox.Show("Data Inserted");
}
else
{
MessageBox.Show("Data Not Inserted");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
connection.Close();
}
}
}

Die Datenbank:

Kann mir da jemand weiterhelfen?
Ich finde den Fehler einfach nicht...
Vielen dank im voraus






