Creating a High Score Table

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
JustaGirl
Forum Newbie
Posts: 4
Joined: Tue Feb 15, 2005 8:11 am

Creating a High Score Table

Post by JustaGirl »

Sorry if this is the wrong forum to post this in but Im at my wits end (please move it if Im in the wrong place :))

Anywhoo.. here is my delema

I would like to create a form where people can enter thier name, email, game name, and high score and it automatically shows up in a table.... I cant seem to find anything on the internet to do this (Ive looked for 6 hours now)

I want to it look like this after people put in thier info

Code: Select all

Name------------------Email------------------Game------------------Score
Joe                  joe@yahoo.com           blahblah              1234
Is this possible with php? I have a server that has MySQL and PHP, so that isnt the issue....

Any help would be great!!!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

it's easily done. You'll need code to handle the submission, insertion into the database, display the information how you wish, and entry form for data. These can be in seperate scripts, or in the same one.

First create a form that can submit the information you wish. At the same time, create a simple script that will debug out the data being submitted to it; basically just a print_r() of whatever method you are submitted through: $_GET or $_POST. Once you have the submission working, tackle the processing of that information. Include validation and sanitizing code. Follow that by an insertion query. All that's left is playing with a selection query and displaying the results.
JustaGirl
Forum Newbie
Posts: 4
Joined: Tue Feb 15, 2005 8:11 am

Post by JustaGirl »

8O Im sorry .. I should have explained how much of a newbie i am :) I didnt understand a word of that!!!!!!!! Is there any examples on the net I can work from? Or pre-made scripts at all?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

have a read through the starter pack: viewtopic.php?t=21400
JustaGirl
Forum Newbie
Posts: 4
Joined: Tue Feb 15, 2005 8:11 am

Post by JustaGirl »

I read through everything....

Still at the same position I was when I first posted here....

Thanks anyways... :cry:
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

JustaGirl
Forum Newbie
Posts: 4
Joined: Tue Feb 15, 2005 8:11 am

Post by JustaGirl »

Thanks for the google help Bech100

I gooooooooooogled for 6 hours 8O and couldnt find a thing! Though... I didnt have a clue onto what keywords to use!

I tried "submit scores" .. "submit hiscores" .. "create high score table"... etc etc"

I'll go look :D thanks
Post Reply