Jump to content

Recommended Posts

alright so you are right. I was thinking something was funky with the fieldnames.

 

Well, the way I created the table is that I need 41 fieldnames. Each for 41 members. Now I don't want to use their names for it because the names might change overtime. So I have another table for the names. I thought I could easily link them by the id of their name to the # id in this table.

 

But this isn't the case, since number like 1, 2, 3, can't be fieldnames. What I can do to name 41 fieldnames without using numbers? a, b, c,... ab, ac, ad,...?

Link to comment
https://forums.phpfreaks.com/topic/68491-help/#findComment-344551
Share on other sites

Actaully I considered that and that would be an even poorer design.

 

This is suppose to act as an attendance table. So I have a column for each member and each row would be a meeting day. It is much easier and logically smarter to have the rows the meeting days and not the column because all you do is insert into attendace (meeting, a1, a2, a3).. values ($date,...).

 

Then when a user checks if he was present or unexcused for a meeting all I do is search his column for the respective answers.

Link to comment
https://forums.phpfreaks.com/topic/68491-help/#findComment-344819
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.