So, the user inputs their email in case they forgot their password, the input is taken into a query where it selects the place where Email is equal to the email that is inputted by the user, but how do I also get the password value in column two to return to the user?
The code I'm using is this:
Try
If Not dbconn Is Nothing Then dbconn.Close()
dbconn.ConnectionString = String.Format("server={0}; port=3306; user id={1}; password={2}; database={3}; pooling=true", server, userName, password, DatabaseName)
dbconn.Open()
query = String.Format("SELECT * FROM Testers WHERE Email='" + forgotEmail + "'")
Try
dbcomm = New MySqlCommand(query, dbconn)
dbread = dbcomm.ExecuteReader()
While dbread.Read()
End While
dbread.Close()
Catch ex As Exception
MsgBox(ex.ToString)
End Try
Catch ex As Exception
MsgBox(ex.ToString)
End Try
But what do I do after the query point?