SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Nov 2006
    0 Post(s)
    0 Thread(s)

    a register style script

    I need to create a register script using php and mysql.

    This will be for people to log in and either say yes or no to whether they register for the event.

    I am guessing the best way is to have 3 tables.

    1 for users, 1 for events and 1 that joints the 2 events plus the answer.

    But I am not sure how you would code for it.

    I can get the data in to the final table but I don't know how to read the data out of it in a usable format.

    For example, If I select an event, I would want a list of all the people who have responded and their answers.

    I have never done anything using multiple tables, so I am a bit lost.

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Philadephia, PA
    1 Post(s)
    0 Thread(s)
    Select the names of all users that have registered for event #3:
    FROM users
    INNER JOIN users_events ON users_events.user_id =
    INNER JOIN events ON users_events.event_id =
    WHERE = 3


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts