i am new to Mysql in vb.net.
what I want is when I click the save button, I want the mysql database is updated and that the collumn Wcoins get updated and it will get a value that is in Label2.Text
my code:
        Dim conn As MySqlConnection
    conn = New MySqlConnection("server=REMOVED;Port=REMOVED; user id=REMOVED; password=REMOVED; database=REMOVED")
    Dim username As Boolean = True
    conn.Open()
    Dim sqlquery As String = "UPDATE * FROM NewTable WHERE Wcoins=label2.text"
    Dim data As MySqlDataReader
    Dim adapter As New MySqlDataAdapter
    Dim command As New MySqlCommand
    command.CommandText = sqlquery
    command.Connection = conn
    adapter.SelectCommand = command
    data = command.ExecuteReader
    data.Close()
    conn.Close()
i made some mistakes but i was trying to update Wcoins so it will delete the old value and it will get the value that is displayed in label2.text
any help would be realy apreciated
i'm dutch so if you see spelling mistakes please correct them
 
     
     
    