Advertisement
Guest User

Untitled

a guest
Aug 4th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. Imports System.Management
  2.  
  3. Imports MySql.Data.MySqlClient
  4. Imports AutoUpdaterDotNET
  5. Imports System.Net
  6. Imports System.Text.RegularExpressions
  7. Imports System.Threading
  8.  
  9. Public Function jokenconn() As MySqlConnection
  10. Return New MySqlConnection("server=mysql.life-host.info;user id=exeportal;password=ygejupyqu;database=life_dev")
  11. End Function
  12.  
  13. Dim cmd As New MySqlCommand
  14. Dim da As New MySqlDataAdapter
  15. Dim con As MySqlConnection = jokenconn()
  16.  
  17. sql = String.Format("SELECT * FROM `users` WHERE username= '{0}' and status= '{1}'", TextBox1.Text, 1)
  18. .Connection = con
  19. .CommandText = sql
  20. End With
  21. da.SelectCommand = cmd
  22. da.Fill(publictable)
  23. If publictable.Rows.Count > 0 Then
  24. Dim user_type, name As String
  25. If user_type = "" Then
  26. ElseIf user_type = "Encoder" Then
  27. Else
  28. 'welcome
  29. End If
  30.  
  31. Else
  32. MsgBox("error")
  33. End
  34.  
  35. End If
  36. da.Dispose()
  37. con.Clone()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement