Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using System.Data.Odbc;
- namespace WindowsFormsApplication1
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- string cmd = "UPDATE accounts SET premdays = premdays + 7 ";
- private void button1_Click(object sender, EventArgs e)
- {
- OdbcConnection Connection = new OdbcConnection("Driver={MySQL ODBC 5.1 Driver};Server=localhost;Database=Server; User=root;Password=password;Option=3;");
- Connection.Open();
- OdbcCommand Command = new OdbcCommand(cmd, Connection);
- MessageBox.Show("Complete");
- Connection.Close();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement