Ver Mensaje Individual
  #4 (permalink)  
Antiguo 12/10/2003, 22:42
j_aspillaga
 
Fecha de Ingreso: septiembre-2003
Mensajes: 248
Antigüedad: 20 años, 7 meses
Puntos: 2
supongamos que tienes una tabla noticias con:
id, titulo, resumen, contenido
en la pagina uno.php:
$db="tubd";
$user="root";
$pwd="";
$a=mysql_connect ('localhost',$user,$pwd);
$result =mysql_db_query ($db,"select id,titulo, resumen from noticias limit 0,10");
while ($row=mysql_fetch_array($result))
{
echo "titulo: ".$row[1]."<br>";
echo "resumen: ".$row[2]."<br>";
$id=$row[0];
echo "<a href ="dos.php?codigo=".$id.">";
echo "ver mas [+]</a>";
}
////////
en la pagina dos.php
$db="tubd";
$user="root";
$pwd="";
$a=mysql_connect ('localhost',$user,$pwd);
$result =mysql_db_query ($db,"select *from noticias where id='$codigo' ");
$row=mysql_fetch_array($result);
echo $row[0];

Espero sinceramente te sirva
Suerte!
__________________
Jose A