SqlConnection conn = new SqlConnection("server=(local);"+"Database=bbs;"+"Integrated Security=true;");
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "INSERT INTO post(name,subject,message,[date],ip) Values ( '"; strName + "','" + strSubject + "'.'" + strMsg + "','" + strDate + "','" + strIP + "');";
cmd.Connection = conn;
conn.Open();
cmd.ExecuteNonQuery();
conn.Close();
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "INSERT INTO post(name,subject,message,[date],ip) Values ( '"; strName + "','" + strSubject + "'.'" + strMsg + "','" + strDate + "','" + strIP + "');";
cmd.Connection = conn;
conn.Open();
cmd.ExecuteNonQuery();
conn.Close();
cmd.CommandText = "INSERT INTO post(name,subject,message,[date],ip) Values ( '"+ strName + "','" + strSubject + "','" + strMsg + "','" + strDate + "','" + strIP + "')";