I need to clode the Connection (conn.Close();) ater reading SQL
Heres the Reader
public MySqlDataReader ExecuteReader(string sql)
{
try
{
MySqlDataReader reader;
MySqlCommand cmd = new MySqlCommand(sql, conn);
reader = cmd.ExecuteReader();
return reader;
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
return null;
}
Where do i need to put the Close line?