<a href="<?php echo $_SERVER['PHP_SELF']; ?>?que=peras">link</a>
if( isset( $_GET['que'] ) && $_GET['que'] == "peras" ) { // consulta }