I think i know what you mean.
That when you have this:
while ($row = mysqli_fetch_assoc($result))
{
echo '<a href="/names/'.$row['Listingname'].'">'.$row['Listingname'].'</br>';
}
That you get a list of names as a link.
Alfredo (www.MySite.com/names/Alfredo)
Sandra (www.MySite.com/names/Sandra)
And somebody clicks on a link, like Sandra. He goes to the url:
www.MySite.com/names/Sandra
And on that page, you can get the url with $_SERVER['REQUEST_URI']
$parts = explode("/", $_SERVER['REQUEST_URI']);
$name = $parts['4'];
Example of the query can be:
"SELECT * FROM Names WHERE name = '$name'"
And than you can get the results from the url into the query to get the results of the name. That you can show on the page.