Ver Mensaje Individual
  #12 (permalink)  
Antiguo 21/12/2012, 06:20
DoHITB
 
Fecha de Ingreso: abril-2012
Ubicación: 41°37′00″N, 00°37′00″E
Mensajes: 462
Antigüedad: 12 años, 1 mes
Puntos: 33
Respuesta: Paginas de comentarios

Si quieres mostrar las 3 anteriores y las tres posteriores, tendrías que hacer algo así:

Código:
//suponiendo que la página actual está en $_GET['p']

$min = $_GET['p'] - 3;
$max = $_GET['p'] + 3;

//haces el select  con el limit $_GET['p'], 10

for($i=0;$i<$max;$i++){
  //mostrar

  if($i == $_GET['p']){
    //negrita
  }

  //seguir mostrando
}
Saludos!