grazie per la risposta king provero con un where io ti posto cmq i richiamo..
eccola e poi parte il codice php con la diposizione della table
codice:
$result = $db->sql_query( "SELECT * FROM ".$prefix."_bbtopics" ); $Amount_Of_Topics = $db->sql_numrows( $result ); $resultes= $db->sql_query("SELECT SUM(topic_views),SUM(topic_replies) FROM ".$prefix."_bbtopics"); while ($row = $db->sql_fetchrow($resultes)) { $Amount_Of_Topic_Views = $Amount_Of_Topic_Views + $row['SUM(topic_views)']; $Amount_Of_Topic_Replies = $Amount_Of_Topic_Replies + $row['SUM(topic_replies)']; }
$resultF = $db->sql_query( "SELECT * FROM ".$prefix."_bbposts" );
$Amount_Of_Posts = $db->sql_numrows( $resultF );
$Count_Topics = 0;
$Topic_Buffer = "\n";
$resultX = $db->sql_query( "SELECT topic_id, forum_id, topic_last_post_id, topic_title, topic_poster, topic_views, topic_replies, topic_moved_id FROM ".$prefix."_bbtopics ORDER BY topic_last_post_id DESC");
while( list( $topic_id, $forum_id, $topic_last_post_id, $topic_title, $topic_poster, $topic_views, $topic_replies, $topic_moved_id ) = $db->sql_fetchrow( $resultX ) )
{