Jump to content

PHP Newbie trying to update existing database with web form


bretthexum

Recommended Posts

Hi guys,

 

I've spent quite a bit of time searching the site and have a good start - hoping for some help.  I run a hockey league and have a database that keeps our stats.  Regular stats page is here - http://okchockey.com/stats/stats.php

 

I need a web form that can update existing records in the database.  Maybe I am going thru this the wrong way - please let me know.  I know there's a better way than my current version. 

 

Basically I have a table that has fields of Week, Jersey, Name, Goals, Assists, Points, and Penatly_Min.  Again - excuse the newbie-ness - what I did is have a record for each player for each week.  I already pre-created a record for each player for each week.

 

I just need a web form that will update these existing records.  I already created one that can add new records but I am having a tough time creating one to update existing ones. 

 

I'd like to be able to select the week (week 1-10) then select a player and update his stats for that particular week.  Hopefully this makes sense. 

 

If anyone has some sample code I can look at I'd sure appreciate it.  Really struggling trying to teach myself PHP

Link to comment
Share on other sites

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.