JQM and php, page internal

JQM and php, page internal

Hello,
I have a question.
I use php, jqm and external page. When i need use link i use :

  1. <?php
  2.   while ($fila = mysql_fetch_array($peticion)) {
  3.   echo 
  4.   '<li><a href="detalles.php?id='.$fila["term_taxonomy_id"].'" data-transition="none"></li>';
  5.   }
  6.  ?>


But, how can I do it only with internal pages?