Ver Mensaje Individual
  #5 (permalink)  
Antiguo 29/03/2008, 09:02
Avatar de Carlojas
Carlojas
 
Fecha de Ingreso: junio-2007
Ubicación: Shikasta
Mensajes: 1.272
Antigüedad: 17 años, 8 meses
Puntos: 49
Re: Ayuda con consulta.

Prueba así tu código:
Código PHP:
<?  
   $id 
$_GET['id']; 
   
$result mysql_query("SELECT descrip, autor, fecha, visitas FROM articulos where id='$id'") or die( mysql_error() ); 
   
$articulos mysql_fetch_array($result); 
echo 
"<table width='100%' border='0'> 
  <tr> 
    <td><font color=#555555>'"
.$articulos['descrip']."'</font></td> 
  </tr> 
  <tr> 
    <td><font color=#555555><i>Fecha: <b>'"
.$articulos['fecha']."'</b> | Visto: <b>'".$articulos['visitas']."'</b></i></font></td> 
  </tr> 
</table>"
;            
?>
Saludos.