Hola Niltza, pues bien, gracias por tu comentario, lo unico ke debes agregar es esto:
Código PHP:
<?php
require_once ("Connections/Batco.php");
$Cod_Noticia = $_GET['CodigoNoticia']; // Recoge el ID de la Noticia que quieres Ver.
$Sql = "select * from noticias where CodNoticias = '$Cod_Noticia'";
$Result = mysql_query($Sql);
if (mysql_num_rows($Result) > 0)
{
while ($Row = mysql_fetch_array($Result))
{
$Codigo = $Row['CodNoticias'];
$Titulo = $Row['Titulo_Noticia'];
$P_Contenido = $Row['Primer_Contenido'];
$S_Contenido = $Row['Segundo_Contenido'];
$Imagen = $Row['Imagen_Noticia'];
$Fecha= $Row['Fecha_Ingreso'];
}
}
else
{
$NotNoticia = "NO Hya Noticias por Mostrar";
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>:: Ver Noticias ::</title>
</head>
<body>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><h4>Ver Noticia </h4></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><form name="form1" method="post" action="">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="250" rowspan="9"><div align="center">
<?php
if ($Imagen <> "")
{
echo "<img src=imagen_noticias/".$Imagen." height= 120 width= 140>";
}
else
{
echo "<b> No Hay Imagen para Mostrar";
}
?></div></td>
<td width="350"><?php echo $Fecha; ?></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><?php echo $Titulo; ?></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><?php echo $P_Contenido; ?></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><?php echo $S_Contenido;?></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</form> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</body>
</html>
Ok con esto puedes ver la Noticia y Su respectiva Imagen, claro esta antes de llegar a esta pagina debes enviar el Codigo de Noticia que quieres ver. y Listo.
Fernando. <TheAnswer>