Yo pues haria algo asi:
Código PHP:
<?php
$id = $_SESSION["id_usuario"];
$q = mysql_query("SELECT * from temas where id_usuario='".$id."'");
echo "<td>";
if(!mysql_num_rows($q))
{
echo "No has creado ningun tema";
}else{
while($r = mysql_fetch_object($q))
{
?>
- <a href="vertema.php?id=<?=$r->id_tema?>" style="color:#FF0"><?=$r->titulotema?></a><br />
<?
}
}
echo "</td></tr>";
?>