Hi-
I have modified the Jump.pm so that each Hit not only increments the Hits field by one, but also the field called Total_Amount by the value in the field Rate:
$db->update ( { Hits => \"Hits + 1", Total_Amount => \"Total_Amount + Rate"}, { ID => $id }, { GT_SQL_SKIP_INDEX => 1 } );
So if the Rate field is set to 0.10 and the Total_Amount field starts at 0.00, then after the first hit the total amount field increments to 0.10, second hit, 0.20, etc.
I would like to also have it reduce a field called Deposit in the User table for that Link by the Rate value.
So, if the User for the Link started with 50.00 in the Deposit field (in the User Table), and one of his/her links has the Rate value of 0.10, then it would decrease the Deposit field to 49.90 for the first click on that link, 49.80 for the next click, etc...
Does anyone have any idea if it's possible to do this by modifying Jump.pm?
Any help or insights would be much appreciated!
-jw
I have modified the Jump.pm so that each Hit not only increments the Hits field by one, but also the field called Total_Amount by the value in the field Rate:
$db->update ( { Hits => \"Hits + 1", Total_Amount => \"Total_Amount + Rate"}, { ID => $id }, { GT_SQL_SKIP_INDEX => 1 } );
So if the Rate field is set to 0.10 and the Total_Amount field starts at 0.00, then after the first hit the total amount field increments to 0.10, second hit, 0.20, etc.
I would like to also have it reduce a field called Deposit in the User table for that Link by the Rate value.
So, if the User for the Link started with 50.00 in the Deposit field (in the User Table), and one of his/her links has the Rate value of 0.10, then it would decrease the Deposit field to 49.90 for the first click on that link, 49.80 for the next click, etc...
Does anyone have any idea if it's possible to do this by modifying Jump.pm?
Any help or insights would be much appreciated!

-jw