MGCJerry
05-23-2002, 03:51 PM
I have finally thought of a good project to work on, or I'm just over my head :D I'm wanting to learn more php/MySQL, and the only way I could to that is "hands on" so I thought of a project for me to do... And well.... Here it is below...
Extracted from: Personal Notes
I'm wanting to build a store, backend system, and a credit card processing system for my RPG website to allow my players to purchase items to help them in the game. I realize this isnt necessairly gonig to be a quick simple script, but it will get me going further in php/ MySQL if I work on a bigger project that I could use. I would like to start from scratch to build this script, but have some references in case I run accross a difficult problem.
I currently know:
if()
elseif()
rand()
srand()
date()
include()
variables
arithmetic operations
several others...
php MySQL functions:
db_connect()
db_select()
couple others...
MySQL functions:
select from
delete from
insert into
couple others...
After this is completed (if/when), I think it could push my abilites far enough to become a good beginner at php/MySQL programming and may just give me a little boost for something to do with my spare time and *maybe* get paid a little for some other php/MySQL smaller development.
I would like to construct this script alone (yup... Crazy, huh?) but get some advice here and there and some code snippets (watch out SourceForge), so expect sometime in the distant future to abuse my script to help test it :) and maybe offer suggestions. So... Who thinks I'm in over my head with this project :) ?
**********PROPOSED LAYOUT**********
I thought this out last night when I was showering. Since I crawled the Internet a looooooong time ago for such a script but never found one I recently remembered that php and MySQL could do what I want. Now that I have a grasp on php/MySQL I'd like to give it a try... Whuddya think?
PREFERRED LANGUAGE(S):
php and MySQL
GOAL:
To create a Credit Card like enviroment for my website where players can purchase items from the store using a special "Account" to mimic purchasing items with a credit card on the Internet.
PURPOSE:
This will give me a grasp in php/ MySQL programming using what I believe to be many simple php commands as a learning base and a functional example for future, larger, & complex scripts.
PROPOSED LAYOUT:
The Script should be *simple* yet secure and not require any other script to properly operate, but may be easily integrated as a module into a php/MySQL CMS or portal system such as phpNuke, Postnuke, etc. The proposed contents of the script is detailed below:
* Credit Card Number Database
This MySQL database will the the only necessary database for the entire sustem and will store the credit card holders name, ID number (assigned license number upon registering), MySQL UID number (auto increment), "bank", account number, status and balance. It may also have a table for approved Administrators to grant access to the Administration GUI.
* Bank GUI
This will allow players to do deposits, withdraws, etc. concerning their account (bank transactions from players will be verified by GM (Game Master) then "approved" and updated into the database (see Administration below).
* Administration GUI
This will allow the GM (Game Master) the facilities to create new accounts for users, process changes, and otherwise perform banker duties such as transfers, cancelling accounts, making mistakes ;) (to preserve a more "real" feeling to the game). This should allow almost all manipulation to all the fields to the Database without having to use an external or internal MySQL client (such as phpMyAdmin, or MySQL Front) to perform database maintence, and/or corrections. This section will also allow the GM to see what was bought, how many, by who, and where to send it to.
<edit>
Decided not to do a store from scratch, and to use an existing one.
</edit>
* Store Processor
This will allow the users to purchase items present in the store using their Credit Card assigned by the GM (Game Master). The Store Processor will automatically deduct from the balance from the users account providing they have the funds and provide the right credentials. If invalid credentials are used for a 3rd time, the Store Processor marks the account as stolen for the GM to look into. The Store Processor will also be required to give the player a receipt with a "transaction ID" and notify the GM of what has been ordered, how many, by who, and where to ship to.
End Personal Notes
Well.... who thinks I just sentenced myself to death? :D
My status so far: Not started yet :D still working out some "other" things...
Extracted from: Personal Notes
I'm wanting to build a store, backend system, and a credit card processing system for my RPG website to allow my players to purchase items to help them in the game. I realize this isnt necessairly gonig to be a quick simple script, but it will get me going further in php/ MySQL if I work on a bigger project that I could use. I would like to start from scratch to build this script, but have some references in case I run accross a difficult problem.
I currently know:
if()
elseif()
rand()
srand()
date()
include()
variables
arithmetic operations
several others...
php MySQL functions:
db_connect()
db_select()
couple others...
MySQL functions:
select from
delete from
insert into
couple others...
After this is completed (if/when), I think it could push my abilites far enough to become a good beginner at php/MySQL programming and may just give me a little boost for something to do with my spare time and *maybe* get paid a little for some other php/MySQL smaller development.
I would like to construct this script alone (yup... Crazy, huh?) but get some advice here and there and some code snippets (watch out SourceForge), so expect sometime in the distant future to abuse my script to help test it :) and maybe offer suggestions. So... Who thinks I'm in over my head with this project :) ?
**********PROPOSED LAYOUT**********
I thought this out last night when I was showering. Since I crawled the Internet a looooooong time ago for such a script but never found one I recently remembered that php and MySQL could do what I want. Now that I have a grasp on php/MySQL I'd like to give it a try... Whuddya think?
PREFERRED LANGUAGE(S):
php and MySQL
GOAL:
To create a Credit Card like enviroment for my website where players can purchase items from the store using a special "Account" to mimic purchasing items with a credit card on the Internet.
PURPOSE:
This will give me a grasp in php/ MySQL programming using what I believe to be many simple php commands as a learning base and a functional example for future, larger, & complex scripts.
PROPOSED LAYOUT:
The Script should be *simple* yet secure and not require any other script to properly operate, but may be easily integrated as a module into a php/MySQL CMS or portal system such as phpNuke, Postnuke, etc. The proposed contents of the script is detailed below:
* Credit Card Number Database
This MySQL database will the the only necessary database for the entire sustem and will store the credit card holders name, ID number (assigned license number upon registering), MySQL UID number (auto increment), "bank", account number, status and balance. It may also have a table for approved Administrators to grant access to the Administration GUI.
* Bank GUI
This will allow players to do deposits, withdraws, etc. concerning their account (bank transactions from players will be verified by GM (Game Master) then "approved" and updated into the database (see Administration below).
* Administration GUI
This will allow the GM (Game Master) the facilities to create new accounts for users, process changes, and otherwise perform banker duties such as transfers, cancelling accounts, making mistakes ;) (to preserve a more "real" feeling to the game). This should allow almost all manipulation to all the fields to the Database without having to use an external or internal MySQL client (such as phpMyAdmin, or MySQL Front) to perform database maintence, and/or corrections. This section will also allow the GM to see what was bought, how many, by who, and where to send it to.
<edit>
Decided not to do a store from scratch, and to use an existing one.
</edit>
* Store Processor
This will allow the users to purchase items present in the store using their Credit Card assigned by the GM (Game Master). The Store Processor will automatically deduct from the balance from the users account providing they have the funds and provide the right credentials. If invalid credentials are used for a 3rd time, the Store Processor marks the account as stolen for the GM to look into. The Store Processor will also be required to give the player a receipt with a "transaction ID" and notify the GM of what has been ordered, how many, by who, and where to ship to.
End Personal Notes
Well.... who thinks I just sentenced myself to death? :D
My status so far: Not started yet :D still working out some "other" things...
