hola gracias por las respuestas pero no logro hacerlo que cada usuario se relaciona con su tema 
esta es la pagina de perfil que contiene subir tema a base de datos y mostrar tema tambien 
no lo se donde esta el fallo 
perfil.php     
Código PHP:
Ver original<? include 'acceso_db.php'; ?>
    if(mysql_num_rows($perfil)) { // Comprobamos que exista el registro con la ID ingresada          $usuario_id = $row["usuario_id"]; 
        $usuario_nombre = $row["usuario_nombre"];
                $usuario_email = $row["usuario_email"];
                $usuario_freg = $row["usuario_freg"];
                $facebook = $row["facebook"];
                $twitter = $row["twitter"];
                $avatar = $row["avatar"];
?>
 
<html>
 
<head>
           <title>Perfil de <?=$usuario_nombre?> | Tu web</title>
</head>
 
<body>
 
<h2><? echo $nombre ?></h2>
 
<div id="menu">
    <a href="usuarios.php">Usuarios</a> |
    <a href="acceso.php">Acceso-Portal</a>
</div>
 
<h2>Perfil de <?=$usuario_nombre?></h2>
 
<img src="<?=$avatar?>" width="200" height="200" />
 
<p>Email: <?=$usuario_email?></p>
<p>Fecha de registro: <?=$usuario_freg?></p>
 
 
</body>
 
</html>
 
<? } else { ?>
 
     <p>El usuario o perfil que buscas no existe .-.</p>
      <a href="usuarios.php"><button>Lista de usuarios</button></a>
 
<? } ?>
 
 
 
 
 
 
 
 
 
 
[B]// aqui donde subo el tema[/B]
<font color="#000000" face="Courier New, Courier, mono"><h2 align="center"><strong>Agregar Nuevo Tema</strong></h2></font>
<form action="procesatema.php" method="post">
<table width="100%" border="0">
  <tr>
    <td  width="40%"align= "right"><em>Nombre :</em></td>
    <td  ><input name="autor" type="text" size="30" maxlength="30"></td>
  </tr>
  <tr>
     <td align="right"><em>E-Mail :</em></td>
     <td><input name="correo" type="text" size="30" maxlength="30"></td>
  </tr>
  <tr>
     <td align="right"><em>Tema :</em></td>
     <td><input name="tema" type="text" size="30" maxlength="30"></td>
  </tr>
  <tr>
     <td align="right"><em>Mensaje :</em></td>
     <td><textarea  name="mensaje" cols="40" rows="10"></textarea></td>
  </tr>
  <tr>
     <td><input    TYPE= "hidden" NAME="fecha"  value=
<?echo date("y"),"/",date("m"),"/",date("d");?>  </td>
  <tr>
     <td ><input  type="submit" value="Grabar"></td>
  </tr>
</table>
<hr>
 <table align='center' border='0' bordercolor="#FFffff" >
<tr bgcolor='#666666'><td>
<p align="center"><a href="index.php"><img src="BACKGLOW.GIF" width="60" height="30" border="0"></a></p>
 </td></tr>
 
</form>.
</html>
 
 
 
[B]// aqui donde mostro el tema[/B]
 
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
       <title>Title here!</title>
<meta http-equiv="" content="text/html; charset=iso-8859-1"></head>
 
<table align='center' border='0' bordercolor="#FFffff" >
<tr bgcolor='#666666'><td bgcolor="#CCCCCC">
<p align="center"><a href='altatema.php'><font size='4' color='#0000FF'>Agregar Temas</font> </a></p>
 </td></tr>
<?php
 
 
$leer = "SELECT id,tema,autor,hijos,fecha FROM TEMAS  WHERE tema<>' '";
 
 
print("<table width='100%' border='0'>");
print ("<tr bgcolor='#000000'><td align='center'><font size='4' color='#ffffff'>Tema</font></td><td align='center'><font size='4' color='#ffffff'>Autor</font></td><td align='center'>
<font size='4' color='#ffffff'>Mensajes</font></td><td align='center'><font size='4' color='#ffffff'>Ult.Act.</font></td>");
 
print ("<tr><td bgcolor='#ffffff' align='center'><a href='listahijos.php?var=$fila[0]'>".$fila[1]."</a></td><td bgcolor='#ffffff' align='center'>".$fila[2]."</td><td bgcolor='#ffffff' align='center'>".$fila[3].
"</td><td bgcolor='#ffffff' align='center'>".$fila[4]."</td></tr>");
}
print ("</table>");
} else {
print ("No se puede conectar. Intente nuevamente");
}
?>
<hr>
</body>
</html>
  
  
gracias de nuevo