hello all this seems to be my problem I have a table in mysql and am making a c# app when trying to insert i get a 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 'OIL COMPANY)' at line 1 which is my companyVal. it will insert with one value and a default for all others but i add the second value it errors out
string ConnectionString2 = ConfigurationSettings.AppSettings["ConnectionString2"];
MySqlConnection connection2;
connection2 = new MySqlConnection(ConnectionString2);
connection2.Open();
MySqlCommand command = new MySqlCommand("INSERT INTO spt_proposal (lab_Prop_Id,customer_Name) VALUE (" + a + "," + companyVal + ")", connection2);
command.ExecuteNonQuery();
connection2.Close();
Brent