Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/05/2008, 11:22
fearhds
 
Fecha de Ingreso: noviembre-2007
Mensajes: 97
Antigüedad: 16 años, 5 meses
Puntos: 0
Problemas con anclaje :(

Tengo este codigo dd anteriormente inicializo $i=1; En el primer archivo me coge bien la variable $i, pero no en el segundo y no veo cual es mi error.

Código PHP:
    <?php 
print "<a target=_blank href=mostrar_noticia.php#$i >$fila[titol] </a>"$i=$i+1;?>

archivo mostrar_noticia.php :
Código PHP:
 <?php while($fila=mysql_fetch_array($llistat_noticies)) {?>
   <tr>
    <td>&nbsp;</td>
    <td><a name="$i"><strong><?php echo $i$i=$i+1?> - &nbsp;<?php echo $fila[titol]; ?> </strong></a></td>
  </tr>
  <tr>
    <td> </td>
    <td><div align="justify"><?php echo $fila[text];  ?>    </div></td>
  </tr>
  <?php }?>

A ver si podeis ayudarme