Ver Mensaje Individual
  #7 (permalink)  
Antiguo 05/02/2011, 01:42
Malekith
 
Fecha de Ingreso: abril-2006
Mensajes: 105
Antigüedad: 18 años
Puntos: 11
Respuesta: Mostrar a que tema pertenece un artículo determinado

Ya sale el error:

Código PHP:
<? 
error_reporting
(E_ALL);
//conectamos a la base 
include('conexion.php');
//hacemos las consultas 

$result=mysql_query("select * from eventos ORDER BY id_evento DESC LIMIT 1",$connect); 
$row=mysql_fetch_array($result);

$id_tema=$row[id_tema];
?>
<?

$result2
=mysql_query("SELECT * FROM temas where id_tema='$id_tema'"$connect); 
$row2=mysql_fetch_array($result2); 

$imagen=$row2[imagen];

?>
<?php 
//Una vez seleccionados los registros los mostramos para su edici�n 
while($row=mysql_fetch_array($result))  


echo 
'$imagen';
}  
mysql_free_result($result)
?>
Y sale el siguiente error:

Código:
Notice: Use of undefined constant id_tema - assumed 'id_tema' in /home/a1919488/public_html/prueba.php on line 10

Free Web Hosting

PHP Error Message

Notice: Use of undefined constant imagen - assumed 'imagen' in /home/a1919488/public_html/prueba.php on line 17