I am having a problem with this. I want to update a record in my database but, It keeps showing this message
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'values='85' WHERE stud_no='2014-0317-TSF-1'' at line 1
string myConnection = "datasource=localhost;port=3306;username=root;password=";
MySqlConnection myConn = new MySqlConnection(myConnection);
string Query = "UPDATE stud_grades.firstyear_firstgrading SET values='" + valuesTextBox.Text + "' WHERE stud_no='" + stud_noTextBox.Text + "';";
MySqlCommand SelectCommand = new MySqlCommand(Query, myConn);
myConn.Open();
SelectCommand.ExecuteNonQuery();