Jump to content

Help!!


TheFilmGod

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.