tom527103 Posted June 21, 2011 Posted June 21, 2011 i really need a bank that gives normal member 2% interest and gives donators 4% interest anyone want to hook me up ? 1 Quote
Danny696 Posted June 21, 2011 Posted June 21, 2011 Just edit the cron day file. Edit the original query, and add a where clause, so donatordays = 0 Then copy that query, change the amout of itrest to 0.04, then change the where clause to donatordays > 0 1 Quote
SilvaTungDevil Posted June 21, 2011 Posted June 21, 2011 That's done through your cron day. The basics of it would be : if($ir['donatordays']){ $var = usersbank/100 * 4; $db->query("UPDATE `users` SET `bank` = bank + $var "); }else{ $var = usersbank/100*2; $db->query("UPDATE `users` SET `bank` = bank + $var "); } NOTE: that wont work. That gives you all the basic principles you need for your system, have a shot at making it work and if you still can't I will help you out further 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.