not exactly sure what yop mean. you want to create links to query a database. so just pass the relavent data on the query string:
<a href="query.php?table=users&field=email&value=job@blow.com">query</a>
then in query.php:
$result = mysql_query ("SELECT * FROM " . $_GET['table'] . " WHERE " . $_GET['field'] . " = '" . $_GET['value'] . "'");
this would query the users table and pull all fields for the email job@blow.com