Summary
I have 2 tables on my database. The first table contains the web page name and 2 columns containing the User ID of people who created and last modified those pages. The 2nd table contains the names of the people.
How do I populate those names in table one? I did refer to a similar question but this didn't work.
Table One (Page Information):
+------------+---------+----------+ | Page Title | Creator | Modifier | +------------+---------+----------+ | Page 1 | 1 | 2 | | Page 2 | 1 | 2 | | Page 3 | 2 | 2 | | Page 4 | 2 | 1 | | Page 5 | 2 | 1 | +------------+---------+----------+
Table Two (User Table):
+---------+-------+ | User ID | Name | +---------+-------+ | 1 | Mark | | 2 | Kevin | +---------+-------+
What I'm trying to do:
+------------+---------+----------+ | Page Title | Creator | Modifier | +------------+---------+----------+ | Page 1 | Mark | Kevin | | Page 2 | Mark | Kevin | | Page 3 | Kevin | Kevin | | Page 4 | Kevin | Mark | | Page 5 | Kevin | Mark | +------------+---------+----------+