Visual Basic: Datenbankzeile überprüfen?

  • Hey Com,


    Meine Mysql Spalte sieht folgenderweise aus:



    Wie man da ja jetzt sieht ist die Hardwareid 3 mal vorhanden. Jetzt möchte ich allerdings, das wenn die Hardwareid shcon vorhanden ist der Rest in die Hardwareidspalte gespeichert wird! Kann mir wer sagen wie das geht hier mal der bisherige Code:


    PHP
    Dim hwdi As String = System.Security.Principal.WindowsIdentity.GetCurrent.User.Value.ToString
                    Dim strHostName As String
                    strHostName = System.Net.Dns.GetHostName
                    Dim sendstr As String = "INSERT INTO banned_accounts (`IP_Adresse`, `Hardwareid`, `Hackt`) VALUES ('" & GetIPv4Address() & "', '" & hwdi & "', '0')"
                    Dim command As New MySqlCommand
                    command.Connection = conn
                    command.CommandText = sendstr
                    command.ExecuteNonQuery()
                    MsgBox(GetIPv4Address())


    Mfg