I am designing a template to display a list of members in my group. Each record contains member Full Name and a check box so that I can tick when that particular person attends a meeting. This is inside my template:
get_results("SELECT * FROM members;"); echo ""; foreach($members as $member){ echo ""; echo "".$member->FirstName.""; echo "".$member->LastName.""; echo " $member->Gender "; } echo ""; ?>
To make it simple to explain, I have another simple table, say member_att just to record the member ID if that person attends the meeting (Checkbox ticked)
My question is how to put/hook a button on the template/page to insert records into the member_att table whose checkbox ticked on by going through the list?
I saw this post but not sure if I can use it.
Aucun commentaire:
Enregistrer un commentaire