Can WP give a value a post ID?

So I have queried out some data from another DB and obviously they’re not a post which means I can’t use the standard permalink to link them to an existing page with it’s post type.
So I thought that if WP could just generate an let’s say “artificial” post ID to link to a certain generated page like any other custom post type.

So basically a generated page like when you do the_permalink but for data from another database that is and will not go into the WordPress DB as a post or whatsoever, the question would be if this is possible?

My code so far:

$result    = $newdb->get_results("SELECT ".$column1.",".$column2."  FROM ... LIMIT 1 ");
    <?php   
        foreach ($result as $results) { 
            echo '<li id="list">' ;?>
        <a href=" *answer should be here I think* "><?php echo $results->member_name; ?> </a> 
    <?php
            echo '</li>' ;
        } ?>

EDIT: I think I got a little further the link now updates into localhost/wordpress?1 . It refreshes the page but I need it to go to it’s unique page(for ex and empty page with only the css)

This is the code now:

$result    = $newdb->get_results("SELECT ".$column1.",".$column2."  FROM ... LIMIT 1 ");
        foreach ($result as $results) { 
            echo '<li id="list">' ;?>
            <a href="<?php echo '?id='.$results->memberID.'';  ?>"><?php echo $results->member_name; ?> </a> 
        <?php
            echo '</li>' ;
        }

Solutions Collecting From Web of "Can WP give a value a post ID?"

Add a rewrite rule and extra query vars to handle incoming requests, direct the rewrite rule to a single page post type, create a custom page template for that page, then do whatever querying you need using the query vars set by your rewrite rule.

What you should do is to create a CPT as a container for displaying your data. For each of the CPT “posts” store relevant meta data to is required to be able to get the data from the other DB, and create the per CPT themes files which will access the DB and display the data.