This is actually a pretty straight forward problem I just can’t seem to think about how to do it right now. Alright so I have two tables Users and Groups on my landing page I have a dropdown that displays all of the groups each group has a group leader which is a user. So in my groups table I have the fields id,groupid,leaderid. leaderid connects to users.id I need to loop through the groups and grab/join the leader’s information if anyone can help it would be much appreciated.
Share
Use a
JOINstatement to link the two tables together.