Ver Mensaje Individual
  #6 (permalink)  
Antiguo 08/11/2010, 08:23
Death_Empire
 
Fecha de Ingreso: febrero-2010
Mensajes: 818
Antigüedad: 14 años, 2 meses
Puntos: 55
Respuesta: Mostrar titulo de un tema

cambia el orden, pon la consulta del topic arriba luego seteas la variable $title y luego cargas el select


Código PHP:
<?php
//Primero
include 'global.php';

$sql "SELECT
            topic_id,
            topic_subject
        FROM
            topics
        WHERE
            topics.topic_id = " 
mysql_real_escape_string($_GET['id']);
            
$result mysql_query($sql); 



//Segundo

//obtienes el nombre
$datos mysql_fetch_row($result);

 
$page_title $datos[1];
    
//Load header
    
include_once('./header.php');  
//...
asi se me ocurre que deberia funcionar