I have code that returns a list of records and one of the columns is my users column which displays as a hyperlink. I want to make it so if you click on a user (display_name in the code) you will be taken to the bio page for that user. I'm sure I need to user get['id'] but I'm having trouble figuring out how. Currently I can only grab the display name for the current user. How do I write this so that the URL will currently append the user_ID for the user/display name that is clicked on so that the bio for that user will come up dynamically?
There are two tables. The username/display name is stored in users table and the bio information is storied in users_meta table.
echo "<td><a href=\"http://example.com/portfolio/\">$row->display_name</a></td>";