Guest User

Untitled

a guest
Aug 11th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1.  
  2. //Connecting to database
  3.  
  4. Dim db As New MySQLCommunityServer
  5. db.DatabaseName = "test"
  6. db.Host = "localhost"
  7. db.UserName = "root"
  8. db.Password = "test"
  9.  
  10. //Checking Connection
  11.  
  12. If Not db.Connect Then
  13. MsgBox("Unable to connect to database server") //Need to change how this works.
  14. error.Text = "NOT CONNECTED"
  15. error.TextColor=&cFF0000
  16. else
  17. Error.Text = "CONNECTED"
  18. Error.TextColor=&C00FF00
  19. End If
  20.  
  21. //Adding Departments to dropdown1
Add Comment
Please, Sign In to add comment