Cetanu Posted August 28, 2009 Share Posted August 28, 2009 I know I can do it, but how can I make a value in a database increase by as certain % (aka interest) Link to comment https://forums.phpfreaks.com/topic/172215-interest-rate/ Share on other sites More sharing options...
steveangelis Posted August 28, 2009 Share Posted August 28, 2009 Do it with math? Link to comment https://forums.phpfreaks.com/topic/172215-interest-rate/#findComment-908019 Share on other sites More sharing options...
Cetanu Posted August 28, 2009 Author Share Posted August 28, 2009 Yeah, but how do I make it increase every day or something? I could do this: $money = $row['money'] + $interest But how do I make it do this every day? o.o Link to comment https://forums.phpfreaks.com/topic/172215-interest-rate/#findComment-908025 Share on other sites More sharing options...
steveangelis Posted August 28, 2009 Share Posted August 28, 2009 You need to use a cron job. Those can be done via your server control panel. Link to comment https://forums.phpfreaks.com/topic/172215-interest-rate/#findComment-908026 Share on other sites More sharing options...
Cetanu Posted August 28, 2009 Author Share Posted August 28, 2009 ...I dunno what that means but I'll look into it. Okay, I've found the stuff on configuring cron, but how do I USE it? Link to comment https://forums.phpfreaks.com/topic/172215-interest-rate/#findComment-908028 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.