Beispiel #1
0
        private void EditButton_Click(object sender, RoutedEventArgs e)
        {
            Users user = new Users();

            using (SqlConnection myConnection = new SqlConnection("datasource=localhost;port=3306;username=root;password"))
            {
                string     oString = "update users set name='" + UserNameTextBox.Text() + "',password='******'email='" + UserEmailTextBox.Text();;
                SqlCommand oCmd    = new SqlCommand(oString, myConnection);
                myConnection.Open();
            }
        }