Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/08/2009, 13:20
jorgivaz
 
Fecha de Ingreso: junio-2005
Mensajes: 343
Antigüedad: 18 años, 10 meses
Puntos: 10
Respuesta: Llamar la noticia que quiero en php

en la página destino harías lo siguiente:

Código PHP:
$noticia_id intval($_GET['codigo']);
$sql "SELECT * FROM table_noticias WHERE noticia_id = $noticia_id";
$res mysql_query($sql) or die(mysql_error());
$row mysql_fetch_assoc($res);

echo 
'<h1>'.$row['campo_titulo'].'</h1>';
echo 
'<p>'.$row['campo_contenido'].'</p>'