Jump to content

How to Update user balance automatically?


waqarali

Recommended Posts

Be sure you save the datetime that the deposit was made.  Also - are you paying compound dividends?

 

Write a script that does the calculation that you envision.  Test it out.  When you are happy with the operation convert it to a cron job and schedule it for every 24 hours.

 

Read.

Link to comment
Share on other sites

Uh, no.  We don't do that here.  This is a "help" forum where help means we help you WITH YOUR code.

 

If you want someone to write it for you check out the other forum where you can hire someone.

 

Hint:  The script starts with

 

<?php

Link to comment
Share on other sites

Uh, no.  We don't do that here.  This is a "help" forum where help means we help you WITH YOUR code.

 

If you want someone to write it for you check out the other forum where you can hire someone.

 

Hint:  The script starts with

 

<?php

Great answer!  Of course, if it's run by cron, it might actually start with:

 

 

#!/usr/bin/env php

And then have your line of code next. :D

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.