Page 1 of 1

Text updating by user

Posted: Wed May 24, 2006 2:51 pm
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?

Posted: Wed May 24, 2006 2:56 pm
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...?

Posted: Wed May 24, 2006 5:45 pm
by The Enemy Within
To a file only, its really just a messaging service.

Posted: Wed May 24, 2006 5:49 pm
by The Enemy Within
It also has to be password protected so that only the secretary can update the scores.

Posted: Wed May 24, 2006 6:04 pm
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

Posted: Wed May 24, 2006 6:18 pm
by The Enemy Within
The scores are to be added to a table of fixtures on the results page of the site

Posted: Wed May 24, 2006 6:31 pm
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

Posted: Wed May 24, 2006 9:36 pm
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.