Hello i would like to ask how to create a php code for mysql to do the fallowing thing
if active = 1 to do current amount + 2000
id, eid, amount, apply 1, apply 2, apply 3, active
1 1788 500 NULL NULL NULL 1
2 1956 1000 NULL NULL NULL 1
3 2035 1500 NULL NULL NULL 1
And the output to be like this nothing else to change.
id, eid, amount, apply 1, apply 2, apply 3, active
1 1788 2500 NULL NULL NULL 1
2 1956 3000 NULL NULL NULL 1
3 2035 3500 NULL NULL NULL 1
Thanks in front for people who will hellp