Hello everyone,
Background:
cat table - holds the event details and has a unique "eid" field
user and user_temp table has the "eid" "user_id" and other fields, they are almost identical, the only difference is when user confirm the registeration of the event, it moves from user_temp to user
What I want to do is return a history telling the user all the events he had joined including confirm and not confirm
The return table would get data from the cat table showing the particuars of the events plus a colum tell the user that event he had confirmed or not
I know how to query for "eid" from user and user_temp,
my question is how am I going to pull out the data from the cat table by using the "eid" I got from both tables. I assume each would return an array of "eid" because user might join more than one event.
I think this is a many to one query that I have no idea how to accomplish
Please tell me how I could query the cat table and pull out the rows.
Thanks in advance