NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page [resolved] Another PHP Question

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 02-25-2007, 07:45 AM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: Nov 2003
Location: Florida
Posts: 2,026
slipondajimmy is a splendid one to beholdslipondajimmy is a splendid one to beholdslipondajimmy is a splendid one to beholdslipondajimmy is a splendid one to beholdslipondajimmy is a splendid one to beholdslipondajimmy is a splendid one to beholdslipondajimmy is a splendid one to beholdslipondajimmy is a splendid one to behold
 



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:
$sqlstr="SELECT fuid FROM ".$db->prefix("myfriends")." WHERE uid=$myid LIMIT $inf$tranche"
Problem I am having is we have 2 mods like this. 1 that lists all of your friends, and one that we need to list friends of a certain group. they are both getting there data from the same table (myfriends) but I need the other mod to also grab a groupid so it will only display the profiles of a certain group Here are the tables.

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.
slipondajimmy is offline  
Old 02-26-2007, 09:01 AM   #2 (permalink)
NamePros Regular
Join Date: Feb 2006
Posts: 584
jerometan is a name known to alljerometan is a name known to alljerometan is a name known to alljerometan is a name known to alljerometan is a name known to alljerometan is a name known to alljerometan is a name known to alljerometan is a name known to all
 



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.
jerometan is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 05:05 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger