Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string password = "";
- string connStr = "server = localhost; user = root; database = music; port = 3306;";
- conn.Open();
- MySqlCommand comm = conn.CreateCommand();
- comm.CommandText = "INSERT INTO songs(artist,album,title) VALUES(@artist, @album, @title)";
- comm.Parameters.AddWithValue("@artist", tagFile.Tag.FirstPerformer);
- comm.Parameters.AddWithValue("@album", tagFile.Tag.Album);
- comm.Parameters.AddWithValue("@title", tagFile.Tag.Title);
- comm.ExecuteNonQuery();
- conn.Close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement