sono riuscito a connettermi
codice:
Public Class Form1
Public Sub connessione_al_database()
Dim conn As MySql.Data.MySqlClient.MySqlConnection = New MySql.Data.MySqlClient.MySqlConnection()
conn.ConnectionString = "Data Source=195.***.**.**;Database=prova;User ID=root;Password=pippo"
conn.Open()
Button1.Text = "&Connesso"
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
connessione_al_database()
End Sub
Private Sub nome_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles nome.TextChanged
End Sub
End Class
Ora però devo impostare le query... ed essendo novello non riesco tanto a far funzionare la testa...
in asp imposterei tutto così
codice:
Dim rs
Set rs = Server.CreateObject("ADODB.Recordset")
Dim SQLrs
SQLrs = "SELECT * FROM utxenti where email = '"&...&"''"
conn.Execute(SQLrs)
rs.Open SQLrs, conn
ma in vb.net come si fa?