connection.Close();
connection.Open();
cmd = new MySqlCommand("select attend from credit_purchase where date='" + date + "'", connection);
dread = cmd.ExecuteReader();
while (dread.Read())
{
x = dread.GetValue(0).ToString();//this line to error
}
dread.close();
connection.close();


Ramesh PalanivelRank #372 · 6.8K reputationPosted Nov 30, 2017, 8:28 PM EST
Bharathi RajaRank #1,778 · 842 reputationPosted Dec 1, 2017, 8:11 PM EST