Here is my Original table

When i Run my following PHP file, i can get below table as Result
<?php
// Create connection
$con=mysqli_connect("localhost","root","root");
//connect Database
mysql_select_db("test") or die( "Unable to select database");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$query = "SELECT no, COUNT(name) AS num FROM mytbl
GROUP BY number";
$result=mysql_query($query) or die (mysql_error());
while($row=mysql_fetch_array($result))
{
echo "<a href='test_detail.php'>" . $row['no'] . "</a>" . "-----> " . $row['num'];
echo "<br>";
}
//connection close
mysqli_close($con);
?>

When i click the links on abve table, i want to show data that related to the link as shown on below. pls help me to solve my problem.. THANK YOU

test_detail.php?id={$row['no']}