Hi, i have three table setups:
chatroom_rooms
RID | roomName | maxSize
chatroom_reg_users < for registered users
UID | username | room
chatroom_users < guests
uid | username | room
I am trying to get the following output
+ roomName (people / maxsize)
-- username
but the problem i am getting, is i want to combine the output from both tables to one output.
Can this be done??
Here is what i got so far:
Regards,
Martin
Computing Design And Services:
chatroom_rooms
RID | roomName | maxSize
chatroom_reg_users < for registered users
UID | username | room
chatroom_users < guests
uid | username | room
I am trying to get the following output
+ roomName (people / maxsize)
-- username
but the problem i am getting, is i want to combine the output from both tables to one output.
Can this be done??
Here is what i got so far:
Code:
SELECT chatroom_reg_users.uid, chatroom_reg_users.username, chatroom_users.username FROM chatroom_rooms, chatroom_reg_users, chatroom_users WHERE chatroom_reg_users.room = '$rid' AND chatroom_users.room = '$rid' AND chatroom_rooms.rid = '$rid'
Regards,
Martin
Computing Design And Services: