Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/08/2008, 16:29
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 16 años, 9 meses
Puntos: 416
Respuesta: Generar consulta a base de datos pinchando enlaces

Puedes hacer algo como lo siguiente:

Código PHP:
<?php
for($i="a";$i!="aa";$i++)
{
    echo 
'<a href="filtro.php?letra='.$i.'" title="Datos '.$i.'" target="_blank">'.$i.'</a> ';
}
?>
Asi pasas la letra por GET a la pagina filtro.php
En filtro.php solo haria falta poner algo como:

Código PHP:
<?php
if(!empty($_GET['letra']))
{
$select "SELECT * FROM queseyo WHERE titulo LIKE '".$_GET['letra']."%'";
$query mysql_query($select) or die(mysql_error());
while (
$row mysql_fetch_assoc($query)) {
echo 
$row['titulo']."<br>\n";
}
}
?>