i m writing a code in which i have to print true when checkbox is clicked now i've come up with this
bool bResume = chkbResume.Checked;
MySqlConnection MyCon = new MySqlConnection("server=localhost; Database = nikz; user id=root; password=nikhil; pooling=false;");
MyCon.Open();
MySqlCommand command = new MySqlCommand();
command.Parameters.Add("@resume", bResume);
string SQL = "INSERT INTO LFT_employees (S_no,Emp_no,Name,DOB,Contact,Alternate_Number,DOJ,DOA,Email_id,DOL,Status,P_F_number,Pan_number,Resume) VALUES (@Sno,@EmpNo,@EmpName,@Dob,@Contact,@altno,@DOJ,@DOA,@Email_id,@DOL,@status,@PFno,@pan_no,@resume)";
command.Connection = MyCon;
command.CommandText = SQL;
command.ExecuteNonQuery();
MyCon.Close();
this prints 1 in column named resume but i want to print true ,how can that be done?????