Ok, so I have:
When I run a check on it:
It says:
Isn't it supposed to just say the IP address? Because, it's not working when I check my IP with the IP I have in my database. I have it like this:
So, even though the IP is In my database, I always receive the "ip not here" msgbox.
Code:
Dim SQLQuery = "SELECT * FROM HWID WHERE IP = " & WC.DownloadString("https://secure.internode.on.net/webtools/showmyip?textonly=1") & ""
Code:
MsgBox(SQLQuery.ToString)
Code:
SELECT * FROM Ban WHERE IP = XXX.XXX.X.XX
Code:
Dim MyAdapter As New MySqlDataAdapter
Dim WC As New System.Net.WebClient
Dim SQLQuery = "SELECT * FROM HWID WHERE IP = " & WC.DownloadString("https://secure.internode.on.net/webtools/showmyip?textonly=1") & ""
MsgBox(SQLQuery.ToString)
Dim MyCommand As New MySqlCommand()
MyCommand.Connection = Connection
MyCommand.CommandText = SQLQuery
MyAdapter.SelectCommand = MyCommand
Dim MyData As MySqlDataReader
MyData = MyCommand.ExecuteReader
If MyData.HasRows = False Then
MsgBox("ip not here
Else
MsgBox("ip here")
End If