You need a join I think to connect the two tables together - there are
extensions that help with this - look on the dream weaver site to find one.
On 11/20/04 12:49 PM, in article cno03h$4cl$1 (AT) forums (DOT) macromedia.com,
"rG]Courage-D-" <webforumsuser (AT) macromedia (DOT) com> wrote:
Quote:
Ok guys, I have a really big problem and I need some help. My website:
www.magnetgames.org I?m using a php mysql database. I?v set up a PHPBB forum.
Now I want on my main page, to show ALL USERS THAT ARE PART OF A USER GROUP.
That?s what I want. Now this is how the information is stored in the
databases:
http://www.magnetgames.org/Problem.gif As you can see here, the username
from user_id 2 is Ajantis-X- So I want to show Ajantis-X- and all other users
that are part of the usergroup 4! How to do this? I know the basic php:
SELECT
blablabla FROM blablabla WHERE blablabla = blablabla But I have no idea how
to
do this, with the information stored in 2 different tables! Please help! |