Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.
MySqlConnection = New MySqlConnection() MySqlConnection.ConnectionString = "server= ; Port= ; user id= ; password= ; database= ;" Try MySqlConnection.Open() Catch ex As Exception End Try Dim myadapter As New MySqlDataAdapter Dim sqlquary = "SELECT * FROM accounts WHERE login = '" & Login.UsernameTextBox.Text & "';" Dim sqlquery2 = "INSERT INTO accounts WHERE login = '" & Login.UsernameTextBox.Text & "' AND Online = '" & "1" & "';" Dim command As New MySqlCommand command.Connection = MySqlConnection command.CommandText = sqlquary myadapter.SelectCommand = command Dim mydata As MySqlDataReader mydata = command.ExecuteReader If mydata.HasRows = 0 Then MySqlConnection.Close() Else MySqlConnection.Close() MySqlConnection.Open() Dim registerfinal As New MySqlDataAdapter command.Connection = MySqlConnection command.CommandText = sqlquery2 'start quary registerfinal.SelectCommand = command myData = command.ExecuteReader() MySqlConnection.Close() End If
|Adding a Row to a DataGridView with a string that contains all the parameters||13||26|
|Help with saving data added in DatagridView||1||40|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
22 Experts available now in Live!