i wanna use an update query on my database to update a field depending on 2 others but requires a php function to be called to calculate the value of the 2 fields.
like i have
UPDATE person SET tax = 'Yes' WHERE "php function here" > 12000
"php function here" is a function i have in a php script that gets called with 2 parameters like get_income(pay, time)
something like that that calculates a figure depending on the 2 other fields in the database and returns the result and if that is greater than a certain figure it updates that record. i cannot workout how to incorporate the php function into the update query to get it to work. the 2 parameters in the function are fields in the database that i want to pass to that function.
in microsoft access its easy but i cant do it in php for some reason.