User Money System

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
SilverMist
Forum Commoner
Posts: 65
Joined: Tue Mar 02, 2004 2:06 pm
Location: Canada
Contact:

User Money System

Post 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!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you need someone to set this up for you?
User avatar
SilverMist
Forum Commoner
Posts: 65
Joined: Tue Mar 02, 2004 2:06 pm
Location: Canada
Contact:

Post by SilverMist »

Yes and no.
Even some little code snippets would be extremely helpful :wink:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

what do you have so far?
User avatar
SilverMist
Forum Commoner
Posts: 65
Joined: Tue Mar 02, 2004 2:06 pm
Location: Canada
Contact:

Post by SilverMist »

Pretty much nothing :cry: All I know how to do is the query to add the money. :cry:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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..
Last edited by feyd on Sat Feb 05, 2005 9:42 pm, edited 1 time in total.
User avatar
SilverMist
Forum Commoner
Posts: 65
Joined: Tue Mar 02, 2004 2:06 pm
Location: Canada
Contact:

Post by SilverMist »

Nothing, unless you want me to write up the query to show you?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'm trying to show you the path, not walk it for you. :P
Post Reply