Newb - M2M Relationship, Adding all records
Posted: Tue Apr 03, 2012 5:55 am
I have searched and searched, but I don't know if I just have the wrong terminology, or if I am taking the wrong approach. The idea behind this part of my application is a simple attendance system. I have the following tables:
members
mem_id
first
last
status
...
event
event_id
title
date
description
memevent (m2m table)
mem_id
event_id
attended (boolean)
excused (boolean)
When I create a new event I would like to have a list of all members with an active status so I can easily go down through the list and check attendance. I need to be able to track if a member attended, was excused or was absent. I have gotten to the point where I could have a checkbox for each member to check off if they are absent or present, but I can't have a third option. Any suggestions, ideas...
members
mem_id
first
last
status
...
event
event_id
title
date
description
memevent (m2m table)
mem_id
event_id
attended (boolean)
excused (boolean)
When I create a new event I would like to have a list of all members with an active status so I can easily go down through the list and check attendance. I need to be able to track if a member attended, was excused or was absent. I have gotten to the point where I could have a checkbox for each member to check off if they are absent or present, but I can't have a third option. Any suggestions, ideas...