sitfrog
New Member
I have a PHP script that runs and updates Table A based on the data in that is in Table B. I have the runPHP plugin enabled on the form for Table B. When I add a form record to Table B, the new record is added to Table B, the script runs and I see the update reflected in Table A.
I also have another runPHP plugin set on Table B for "On Record Deletion (onDeleteRowsForm)". When I delete a record from Table B, it does delete the record and appears to run the PHP script. However, Table A does not update with the changes that should be reflected. Is it possible that the runPHP script is running before the delete occurs in Table B, and if so is there something I can do to make it run after the row is gone from Table B, so that Table A is updated and the delete from Table B is taken into account? Or maybe I'm just making a mistake somewhere and I don't see it yet.
Matt
I also have another runPHP plugin set on Table B for "On Record Deletion (onDeleteRowsForm)". When I delete a record from Table B, it does delete the record and appears to run the PHP script. However, Table A does not update with the changes that should be reflected. Is it possible that the runPHP script is running before the delete occurs in Table B, and if so is there something I can do to make it run after the row is gone from Table B, so that Table A is updated and the delete from Table B is taken into account? Or maybe I'm just making a mistake somewhere and I don't see it yet.
Matt