Jump to content

tillaart36

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

tillaart36's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hmm I don't exactly get it... first of all: How do I 'add' their id into a session variable...which command do i use...?? I know I'm very bad with all this stuff but I have to do it for school in a project where a little of php is involved... And when I know how to 'add' the id into a session variable...in which php page must I insert this command? Thanks!!
  2. Hi you all...I hope someone can help me with this... For school I have a project in PHP, but i'm not very familiar with it. I have a working login system where the user data is inserted in a table called users. This table has an user_id which is auto_increment. After the user has logged in he can make choices (about a house he can design for himself)...How do I keep track of the choices a user makes??? The choices he makes are now inserted in a new table option...in this table is a option_id which is also auto_increment... For now I'm trying to put that option_id also also in the user table. Like that I think I can find a users choices with something like: SELECT option.livingtype FROM option,user WHERE user_id = 1 AND user.option_id = option.option_id This way i should find the choice of livingtype a user with user_id 1 has made or not?? How do i put the option_id (auto_increment) , which is generated by submitting the choices form not only in the option table but also in the users table??? Can anyone help me with this?? Thanks!!
×
×
  • 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.