keunene
Messages postés72Date d'inscriptionsamedi 5 avril 2014StatutMembreDernière intervention10 mars 2023
-
28 nov. 2014 à 16:15
NHenry
Messages postés15091Date d'inscriptionvendredi 14 mars 2003StatutModérateurDernière intervention 9 décembre 2023
-
29 nov. 2014 à 20:38
Bonjour,
ce code marche et il affiche tous les utilisateurs mais je voudrais alerter
par msgbox qu'un même pseudo ne peut s'inscrire deux fois
Dim conv As New MySqlConnection Dim result As Integer 'MySqlCommand It represents a SQL statement to execute against a MySQL Database Dim cmdv As New MySqlCommand 'Represents a set of data commands and a database connection that 'are used to fill a dataset and update a MySQL database. This class cannot be inherited. Dim dan As New MySqlDataAdapter
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click try
cmdv.Connection = conv 'in this query it does simply selecting or getting all the user found in the database. cmdv.CommandText = "Select * from users where pseudo ='" & TextBox3.Text & "' "
Catch ex As Exception MsgBox(ex.Message)
End Try conv.Close() dan.Dispose() filltable(dtguser) End Sub