Page 1 of 1

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

Posted: Tue Jul 05, 2005 9:07 am
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!

Posted: Tue Jul 05, 2005 10:34 am
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.