I have created a simple quiz, and a variable called score, which depending on what the user enters, increases if their answer is correct. At the end of the quiz the score is calculated and displayed to the user, I would like to know how to insert the variable score into a table, which has an attribute called score.

Can anyone help? 

I have a database called db1, the table I want to insert into is user/test, the row I want to insert into is score and the variable I want to insert into is called score.

Something like this .... (i'm not sure what to put in the brackets) `System.Data.SqlClient.SqlConnection sqlConnection1 = new System.Data.SqlClient.SqlConnection("); 
System.Data.SqlClient.SqlCommand cmd = new System.Data.SqlClient.SqlCommand(); 
cmd.CommandType = System.Data.CommandType.Text; 
cmd.CommandText = "INSERT user/test (Score) VALUES (@score)"; 
cmd.Connection = sqlConnection1; 
sqlConnection1.Open(); 
cmd.ExecuteNonQuery(); 
sqlConnection1.Close();`

Thanks a lot