Quote:
Originally Posted by RobDog888
You will want to query the thread table and pull out the "views" field.
Ex.
SELECT t.views AS views FROM thread WHERE threadid = 12345
|
I think he wants replies.. not views.
In any event, you'd want to include global.php on your external page and set the working dir. to your forum:
Code:
chdir('/path/to/your/forums');
require_once('/path/to/your/forums/global.php');
Then just query the database like robdog mentioned, something like this:
Code:
$query = $db->query_first("SELECT * FROM thread WHERE threadid = 1234");
Then you can use $query[replycount] to output the number of replies in thread 1234. Obviously this is just a basic example and needs expanded upon, but this should give you a general idea.