public void UpdatePayment(int paymentId) { using (MySqlConnection Conn = new MySqlConnection(Connect.sConnStr)) { Conn.Open(); string sSql = "UPDATE payments SET amount=(@temp:=amount), amount = owes, owes = @temp WHERE payment_id = " + paymentId + ";"; int iReturn = Biogym.Service.Classes.Connect.getDataCommand(sSql, Conn).ExecuteNonQuery(); Conn.Close(); Conn.Dispose(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)