Utter idiot at PHP - need a simple scipt, any help?

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
Mong0L
Forum Newbie
Posts: 1
Joined: Tue Jul 05, 2005 9:02 am
Location: UK

Utter idiot at PHP - need a simple scipt, any help?

Post by Mong0L »

Hi im from a gaming clan site, and we have quite a few members who pay for servers etc each month.

we are hoping for a simple php script on our site so we can monitor who and who hasnt paid, and wondered if anyone here would know where or how to make a script including this - my php skills are about 0 but im willing to give it ago! (only have dreamweaver to use though)

A php script that will allow us to click yes/no and amount for a member to update record on the site of payments?

nothing fancy just a script that shows ::

Member name :: xx
Payment made :: yes/no (will stay what selected, colour for yes/no highlight on name)
Amount :: xxx (will show amount

At bottom of page ::

Total members paid :: xx/15
Amount :: xx/xx

Thanks for any help!
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Well, this isn't a simple script. Not that it's all that complex, but it's not something you can just sit down and write without thinking.

The first thing to consider above all else is your database. This looks like it can be done with just one table, holding the member name, payment made, and the amount they paid.

Next is the reporting script. This will need to access the database, pull out everything, and display it.

The next and final step (although you could really do any of these coding sections in any order) would be the account updating script. This would consist of an HTML form allowing a user to enter the member name and the amount they paid. After the form is submitted, the script would take the form input, use it to build a database query, then do the query.

Give it a try and let us know when you hit some difficulties.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply