procedure TForm1.Button10Click(Sender: TObject); //Admin Clicks Ban Buttonbegin MySQL50Connection1.Connected:= False; Isbanq:= #39+IntToStr(1)+#39; //VAR 'Isbanq' will equal '1' User2ban:= #39+Edit8.Text+#39; //The user to ban will be Edit8.Text SQLQuery1.SQL.Clear; //Clearing the Current SQL...//Only added below as I am new to SQL and didn't know if this would solve the problem or not SQLQuery1.SQL.Text:= 'SELECT Username AS Username, IsBanned AS IsBanned FROM Users WHERE username='+User2Ban;//This should be the SQL Update set, The syntax is correct as far as I am aware, since it works in the 'MySQL Workbench' SQLQuery1.UpdateSQL.Text:= 'UPDATE Users SET isBanned='+Isbanq+' WHERE Username='+User2ban;//Open the SQL So it should all work perfectly... I think =/ SQLQuery1.Open;end;
sqlquery.sql.text:='UPDATE ....'sqlquery.execsqlsqlquery.close