Psst.. new poll here.
[email protected] webmail now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!
Paste
Pasted as C# by d ( 13 years ago )
public void save_invalid_mails(string invalidMail)
{
SqlConnection mySqlConnection = new SqlConnection(connectionString);
mySqlConnection.Open();
//Создание SQL-команды
SqlCommand command = new SqlCommand("INSERT INTO invalid (email_invalid) VALUES (@email_invalid)", mySqlConnection);
// Add the parameters for the InsertCommand.
command.Parameters.Add(invalidMail, SqlDbType.NText);
// Закрепление SQL-адаптеру объекта команды
SqlDataAdapter mySqlDataAdapter = new SqlDataAdapter();
mySqlDataAdapter.InsertCommand = command;
mySqlConnection.Close();
//MessageBox.Show(invalidMail);
}
Revise this Paste
Children: 24957