lol

any help on how to aquire the data i'm trying to get?
i thought maybe the errors in this line?
PHP Code:
$postsonthispage = $thread[replycount] - $perpage / $pages;
as it should be something like
PHP Code:
$postsonthispage = $thread[replycount] - ($perpage / $pages);
get the sum of $perpage dived $pages then subtract that total from the $thread[replycount] and you should have your total?