Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/04/2009, 05:54
Freeddie
 
Fecha de Ingreso: septiembre-2003
Mensajes: 70
Antigüedad: 20 años, 7 meses
Puntos: 1
Pregunta Link a cada registro?

A ver, ahora mismo tengo este código:

Código PHP:
<?php
require_once('../vars.php');
$query_consulta "SELECT grupo, album, fecha, rate FROM reviews WHERE grupo LIKE 'a%' Order By grupo";
$consulta mysql_query($query_consulta) or die(mysql_error());
$row_consulta mysql_fetch_assoc($consulta);
$totalRows_consulta mysql_num_rows($consulta);
?>

<body>
<table width="500" border="0">
<tr>
    <th>Grupo</th>
    <th>Disco</th>
    <th>Puntuación</th>
    <th>Fecha</th>    
    </tr>
<?php do{ ?>
<?php 
$grupo
=$row_consulta['grupo'];
?>
    
      <tr>
              <th><?php echo $row_consulta['grupo']; ?></th>
              <th><a href="reviews.php?id="><?php echo $row_consulta['album'?></a></th>
              <th><?php echo $row_consulta['rate'?></th>
              <th><?php echo $row_consulta['fecha']; ?></th>
      </tr>
<?php } while ($row_consulta mysql_fetch_assoc($consulta));?>
</table>
</body>
</html>
<?php
mysql_free_result
($consulta);
?>
Lo que me gustaría hacer es que donde está el link ke pone reviews.php?id=, lleve a la id correspondiente al álbum que se muestra.

Seguro que es una tontería pero no doy con la tecla...
__________________
Salu2