Jump to content

POST data to MySQL problem


lukep11a

Recommended Posts

Hi, I am using MySQL version 5. Below is my table structure named 'selections':

 

id                 int(11)

username varchar(50)

selection1 varchar(30)

selection2        varchar(30)

selection3 varchar(30)

selection4 varchar(30)

 

I have a working register/login form that posts data to table called 'members'. Once a user logs in for the first time a series of pages are displayed, starting with teamselection1.php where the user will select 1 football team from a choice of 4 and then click submit which then POST's the data to the field 'selection1' of the 'selections' table and then teamselection2.php is displayed and so on.

 

I am having problems trying to get the username that has been used to login with to update in the same row of the 'selections' table and also at trying to get each team selection to update the same row in the 'selections' table. I am starting to wonder whether this is even possible. I hope I have explained this well enough. If anyone can help it will be very much appreciated.

 

Thanks in advance

Luke

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.