ho un problema. con il seguente codice non riesco a visualizzare gli ultimi 5 thread del mio forum IPB. cosa c'è che non va? 
Codice PHP:
<?php
/*
+--------------------------------------------------------------------------+
| Show topic script |
| ======================================== |
| author: Trashofmasters |
| ======================================== |
+--------------------------------------------------------------------------+
| ======================================== |
| this software is distribuited under |
| the GNU-GPL license |
| ======================================== |
| |
+--------------------------------------------------------------------------+
| Invision power board 1.3 |
+--------------------------------------------------------------------------+
*/
//topic show limit
$limit = 5;
//Forum directory
define(FORUM_PATH,'upload/');
//require the configuration file
include(FORUM_PATH.'conf_global.php');
//connect to the forum database
$conn = mysql_connect($INFO['sql_host'],$INFO['sql_user'],$INFO['sql_pass']) or die('error during the database connection');
$db = mysql_select_db($INFO['sql_database'], $conn) or die('error during the database connection');
//select the last topics limit by $limit
$query = "SELECT * FROM `" .$INFO['sql_tbl_prefix']. "topics` WHERE `state`='open' ORDER BY `tid` DESC LIMIT $limit";
$select = mysql_query($query);
echo '<table width="300" border="0" cellspacing="0" cellpadding="0" class="tab">
<tr>
<td width="300">Ulimi thread </td>
</tr>';
while ($threads = mysql_fetch_array($select))
{
echo'<tr>
<td width="300" class="content">» [url="',FORUM_PATH,'index.php?showtopic=',$threads['tid'],'"]',$threads['title'],'[/url]
</td>
</tr>';
}
echo "</table>";
?>