Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/11/2005, 17:44
Boxy
 
Fecha de Ingreso: mayo-2005
Mensajes: 72
Antigüedad: 19 años
Puntos: 1
hola, en tu codigo tienes varios errores, lo arregle prueba este:

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"><? 
$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="<? echo $path?>" alt="Portada" width="50"  height="50" hspace="10" vspace="3" border="0" align="right">; 
<? };?> 
<? 
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> 
<?
}
mysql_free_result($result); 
mysql_close($connect);?>
aver si esto te resulta
__________________
Diseñador Gráfico / Programador PHP / Cisco Certified Network Associate (CCNA) / CSS / Java Scripting / SQL / C-Scripting / Entre otros...

:cool:
BOX