If so I'll try to explain it the best I can but without examples because I don't want to waste my time if this isn't what the thread starter wants.
Let's say you had a database and in that database you had a "users" table.
In the "users" table you have the fields "id" and "name".
Now let's say you wanted the name from a specific id.
You would create a query to get the id from the URL
something similiar to the following
$getname = mysql_query("SELECT * FROM users WHERE id='$_GET[id]' ")or die(mysql_error());
$row = mysql_fetch_array($getname);
Now when you use www.test.com/ay.php?id=10292 it'll get all the fields and their values from where the id is "10292".
It's actually easier than what it seems to be.