Tried to cover all the aspects of my question within the subject. I am trying to create an intranet based on mysql/php. I have created a table with names and each name has a primary key. I have then created a second table and am trying to use the primary key from the other table in this one. Could anyone point me in the right direction or give me some tips how I go about it please?