| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Nov 2003 Location: Florida
Posts: 2,026
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Another PHP Question Ok well the person I was working with has changed there mind and now I need to change what I did. I am still working a "friends" mod and here is what I have ????: NamePros.com http://www.namepros.com/programming/298398-resolved-another-php-question.html PHP Code: myfriends ref uid fuid Groups groupid uid What I dont understand is why the groups are in a separate table. wouldnt it have been better if the groupid where in the user table or even the myfriends table? Im sure this does not make any sense at all but im hoping someone will understand it.
Last edited by slipondajimmy; 02-25-2007 at 09:02 AM.
|
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Feb 2006
Posts: 584
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I would personally do this : myfriends ref uid fuid groupid Groups groupid groupname For me, I'd prefer to have the group table store strictly group-related information. I would have a groupid and use it to link to the user table. |
| |