I have 2 tables. One called users & the other called tv shows. The users table has: users_id, displayname, username and password, I have a foreign key called users_id and in the tv shows table I have tv_id, users_id FK, tvshow, seasons. I want to be able to display the displayname from the users table as to who created it rather than displaying the number id he is assigned.
Share
Use the following SQL query to fetch information about the user:
And then display the information about the user using the following PHP snippet: