Jump to content

Attending Event Script


offdarip

Recommended Posts

I have a local event member system where users can be informed about different events. Users have a member page, etc. I have a list of events and i want users to be able to click on a "attend" link next to the event and the event will show up under their attending events on their member page. Can anyone help me with this or has anyone seen a similar script? Im thinking i will need to setup another mysql table for the events but any help would be greatly appreciated.

Link to comment
Share on other sites

I would add another table maybe prefix_attending

and have these colomns;

id, event_id, user_id, status

 

id = every table needs one

event_id = the event of the id you are adding

user_id =  the user id or username if you dont use id's.

status = I would use codes. For example, 1 = attends,2 = not attending etc. But if you want you could have text.

 

Now for the button. Point to your same page or process page and just enter the information into the database.

 

INSERT INTO prefix_attending SET event_id = $_GET['eid'] and so on

 

Hope i helped abit

Paul

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.