After while i keep getting this error, and that error don't let me use commands anymore, Do anyone know how to fix it?
This where the error take me
DataBase.cs
This where the error take me
DataBase.cs
Client.csQuote:
public static uint GetStatus(string Acc)
{
MySqlDataAdapter DataAdapter = null;
DataSet DSet = new DataSet();
uint Return = 0;
DataAdapter = new MySqlDataAdapter("SELECT * FROM `Accounts` WHERE `AccountID` = '" + Acc + "'", Connection);
DataAdapter.Fill(DSet, "Status");
if (DSet.Tables["Status"].Rows.Count > 0)
{
DataRow DR = DSet.Tables["Status"].Rows[0];
Return = (uint)DR["Status"];
}
return Return;
}
Please check this.Quote:
Status = DataBase.GetStatus(Account);