Advertisement
Guest User

Untitled

a guest
Mar 5th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Dim Statement As String = "Select * from login where username='" + col1 + "' and password='" & col2.ToString & "'" 'Create Command
  2. Dim cmd As New MySqlCommand(Statement, connection)
  3.  
  4. Dim Statement As String = "Select * from login where username='@col1' and password='" & col2.ToString & "'" 'Create Command
  5. Dim cmd As New MySqlCommand(Statement, connection)
  6. cmd.Parameters.AddWithValue("@col1", col1.ToString)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement