php - Allow a user to add or withdraw fake money -
for school have build website allows user upload , withdraw money. problem since not real site real world use money has fictitious. don't have great knowledge of php i've been looking tutorials tutorials real world use , recommend paypal or other payment methods.
so question know tutorial can me problem? website allows users create account , have database that. perhaps figure way tie money users account.
sorry if question stupid. don't know , need website done soon. i'm panicking bit. if me appreciated
create table in database store info money balance of user. when user registered put account info 1 table , money balance other table. can operate on second table withdraw or deposit money per user. have link user balance row in money table user account row in users table. can use let`s userid assign each user on registration.
so tables this:
user_table userid | name | surname 1 x y 22 z c balance_table balanceid | userid | account_balance 1 1 22.99 2 22 -98.00
Comments
Post a Comment