title: Pagination using bootstrap doesn't work
body: <p>I'mt trying to use the Boststrap pagination for my php file (vistapart.php) but looks like this:</p>
  
  <p><a href="http://imageshack.com/a/img59/3215/0cmx.jpg" rel="nofollow">http://imageshack.com/a/img59/3215/0cmx.jpg</a></p>
  
  <p>Instead of like this example: <a href="http://getbootstrap.com/components/#pagination" rel="nofollow">http://getbootstrap.com/components/#pagination</a></p>
  
  <p>This is my code where I do and display the pagination:</p>
  
  <pre><code>$display=10;
  
  if(isset($_GET['p']) &amp;&amp; is_numeric($_GET['p'])){
      $pages=$_GET['p'];
  }else{
      $q="SELECT COUNT(id) FROM participante";
      $r = @mysqli_query ($dbc, $q);
      $row = @mysqli_fetch_array ($r, MYSQLI_NUM);
      $records=$row[0];
      //a partir de aqui calcula numero de paginas
      if($records&gt;$display){
          $pages=ceil($records/$display);
      }else{
          $pages=1;
      }
  }
  
  if(isset($_GET['s']) &amp;&amp; is_numeric($_GET['s'])){
      $start=$_GET['s'];      
  }else{
      $start=0;
  }
  
  ....
  
  if($pages&gt;1){
      echo '&lt;br /&gt;&lt;p&gt;&lt;ul class="pagination"&gt;';
      $current_page=($start/$display)+1;
      if($current_page!=1){
          echo '&lt;li&gt;&lt;a href="vistapart.php?s='.($start-$display).'&amp;p='.$pages.'&amp;sort='.$sort.'"&gt;&amp;laquo;&lt;/a&gt;&lt;/li&gt;';
      }
      for($i=1;$i&lt;=$pages;$i++){
          if($i!=$current_page){
              echo '&lt;li&gt;&lt;a href="vistapart.php?s='.(($display*($i-1))).'&amp;p='.$pages.'&amp;sort='.$sort.'"&gt;'.$i.'&lt;/a&gt;&lt;/li&gt;';
          }else{
              echo $i.'&lt;li&gt;&lt;/li&gt;';
          }
      }
      if($current_page!=$pages){
          echo '&lt;li&gt;&lt;a href="vistapart.php?s='.($start+$display).'&amp;p='.$pages.'&amp;sort='.$sort.'"&gt;&amp;raquo;&lt;/a&gt;&lt;/li&gt;';
      }
  
      echo '&lt;/ul&gt;&lt;/p&gt;';
  }
  </code></pre>
  
  <p>What can be the problem? Thanks for the help.</p>