Jump to content

Recommended Posts

I have a website for my friends and me to guess scores for football games.  I have been updating it trying to get it to the point where I don't personally have to go in and change all the scores myself.  I setup a test page and it works, the only problem is when I come back the changes aren't still there.  I understand why this is happening, but wondered if there was a way to make the PHP sent to the page stay there?

 

http://purduefantasy.freehostia.com/week7.php ... the only user that is setup to change right now is Jon Korty...

 

I think by looking at the link you will get the idea of what I'm trying to do... hopefully.. any help or ideas would be appreciated... Thanks!

Link to comment
https://forums.phpfreaks.com/topic/72892-new-to-php-form-to-html/
Share on other sites

thing is php is a server sice written script as you know. After running a users request, and user leaves site. the script goes back to it's original state.

 

the only ways to permanently store information is either flat files or a database.

 

with a database you'd have it dothe following

 

retrive score from a database

 

show if on display or if someone got a question correct you'd want to $i++ on it and store the altered database entry

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.