![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
24/08/2007, 05:37
|
| | Fecha de Ingreso: marzo-2007
Mensajes: 347
Antigüedad: 17 años, 10 meses Puntos: 2 | |
Re: crear links tras un mysql_fetch_array Para hacer el link, tendras que tener otro archivo, por ejemplo, noticias.php, ya que creo que en ese archivo solo quieres mostrar 1 noticia, yo le pasaria la id por get, osea en esta linea:
echo "<div style=\"margin-left: 10px;\">"."• ". $fila['titulo'] ."</div>";
pondria
echo "<div style=\"margin-left: 10px;\"><a href=\"noticias.php?id=$fila['id']\">"."• ". $fila['titulo'] ."</a></div>";
P.D : Acuerdate de que si vas a poner la id, decirle a la consulta select, que seleccione la id y no solo el titulo.
Espero haberte ayudado |