Page 1 of 1

User Money System

Posted: Sat Feb 05, 2005 8:46 pm
by SilverMist
Hey,
I need help with a bit of code. What I need it to do is first find out what type of user it is, then how much each type of user gets, then either display a button to add money to the account or a message saying they can't get money. It needs to happen every seven days, but say if a user gets their money on Tuesday, they can't get it again until next Tuesday. It's not like theres a set day. Thanks in advance guys!

Posted: Sat Feb 05, 2005 8:49 pm
by feyd
you need someone to set this up for you?

Posted: Sat Feb 05, 2005 8:58 pm
by SilverMist
Yes and no.
Even some little code snippets would be extremely helpful :wink:

Posted: Sat Feb 05, 2005 9:10 pm
by feyd
what do you have so far?

Posted: Sat Feb 05, 2005 9:12 pm
by SilverMist
Pretty much nothing :cry: All I know how to do is the query to add the money. :cry:

Posted: Sat Feb 05, 2005 9:30 pm
by feyd
okay.. well you'll need a query to join the user's type to how much money the receive, and when they last received payment. You may want to research Crons for a daily update run that'll add money to any account due funds..

edit: darn spelling..

Posted: Sat Feb 05, 2005 9:38 pm
by SilverMist
Nothing, unless you want me to write up the query to show you?

Posted: Sat Feb 05, 2005 9:44 pm
by feyd
I'm trying to show you the path, not walk it for you. :P