I have a code :
MySqlCommand cmd = connection.CreateCommand();
cmd.CommandText = "SELECT nom, prenom from liste_personnels where mail ='" + mailTest + "'";
MySqlDataAdapter adap = new MySqlDataAdapter(cmd);
DataSet ds = new DataSet();
adap.Fill(ds);
nom = ds.Tables[0].Rows[0].ItemArray[0].ToString();
prenom = ds.Tables[0].Rows[0].ItemArray[1].ToString();
I found how to extract variables nom and prenom but I think it's complicated.. It's possible to simplify my code - result of dataSet to have my two variables separated et in one table ?
Thanks you for help.