Salu2, y mil gracias
choco_cu
aquí les envio el codigo
Código PHP:
<?php
$id = $_GET[id];
$connect = mysql_connect('localhost','manuel','kimeramarukun');
mysql_select_db('cancunpendulo',$connect);
$result =mysql_query("Select * from noticias where id = '$id'",$connect);
while ($row = mysql_fetch_array($result)){?>
<table width="360" height="450">
<tr>
<td valign="top"><?php
$fechainv = str_replace('-','/',$row[fecha]);
$path = '/img/secciones/'.$row[seccion].'/'.$fechainv.'/'.'portada.jpg';
echo '<h5 valign=top style=color:#950004; font-size:14px; font-family:Tahoma, Verdana; text-decoration:none>'.$row[titular].'</h5>';
if (file_exists($path)){?>
<img src="<?php echo $path ?>" alt="Portada" width="50" height="50" hspace="10" vspace="3" border="0" align="right">;
<?php };?>
<?php
echo '<p valign=top style=color:#a000000; font-size:14px; font-family:Tahoma, Verdana; text-decoration:none>'.$row[ampliada].'<br><br><strong style=color:#FF4A4A; font-size:14px; font-family:Tahoma, Verdana; text-decoration:none>'.$row[fuente].'</strong>';} ?>
</td>
</tr>
</table>
<?php
mysql_free_result($result);
mysql_close($connect);?>