Codice PHP:
 $query="SELECT id FROM richieste WHERE id='$id'"