Add to exisiting db values, rather than overwrite - PDO
- by sam
Im trying to add to existing decimal value in table, for which im using the sql below:
UPDATE Funds SET Funds = Funds + :funds WHERE id = :id
Im using a pdo class to handle my db calls, with the method below being used to update the db, but i couldnt figure out how to amend it to output the above query, any ideas ?
public function…