Text updating by user

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
The Enemy Within
Forum Newbie
Posts: 7
Joined: Wed May 24, 2006 2:40 pm

Text updating by user

Post by The Enemy Within »

I have developed a web site for a bowling league but want the secretary to be able to update the weekly scores himself from his browser. He does not have FTP. He just wants to be able to go onto the site and put the scores in. Is there any PHP to able him to complete this task?
User avatar
J_Iceman05
Forum Commoner
Posts: 72
Joined: Wed Aug 03, 2005 10:52 am
Location: Las Vegas, NV

Post by J_Iceman05 »

quick question..
do you want the updating to be done to a database
or to an actual file.

if to a database you can read up on the query commands for your database...
if to a file, are you looking for fopen, fwrite, etc...?
The Enemy Within
Forum Newbie
Posts: 7
Joined: Wed May 24, 2006 2:40 pm

Post by The Enemy Within »

To a file only, its really just a messaging service.
The Enemy Within
Forum Newbie
Posts: 7
Joined: Wed May 24, 2006 2:40 pm

Post by The Enemy Within »

It also has to be password protected so that only the secretary can update the scores.
hijacker
Forum Newbie
Posts: 4
Joined: Wed May 24, 2006 5:30 pm

Post by hijacker »

I can try to make a quick .php file. I just need 2 peices of info:

1) Where is the file-to-be-edited at (ex: http://www.mybowlingleague.com/scores/index.php)
2) How do you want the outcome to look?
3) Do you want to modifie a table of scores or add a table of scores?

any other specific details would be nice
The Enemy Within
Forum Newbie
Posts: 7
Joined: Wed May 24, 2006 2:40 pm

Post by The Enemy Within »

The scores are to be added to a table of fixtures on the results page of the site
hijacker
Forum Newbie
Posts: 4
Joined: Wed May 24, 2006 5:30 pm

Post by hijacker »

ok, like when you go bowling and you see the score? I did that dor a design so far. How many players in you league?

Or do you mean like:

Player: Score
Player: Score

Or like i got already:

Player: 1st bowl, 2nd bowl, ..., Total score
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Post by GeXus »

Look up fopen and fwrite.. what you will want is a textarea (for simplicity sake) and just let her write in the scores and save (using fwrite) then you can get the content from within the file using fopen and output however you would like.
Post Reply