I have made a view getting the new content added and new comments
But i need to get its count and so i usedthe following code
$view = views_get_view('new_activity');
$view->set_arguments(array(arg(2)));
$view->execute();
return l(count($view->result), 'new-activity/' . arg(2));
but i see untrue number related to the view page
how to fix it espicially using history_timestamp attribute of each row
the main problem is that the views gets , data and hide the viewed rows and only shows the unviewed rows which gives me wrong count
please help or advice with a better scenario
thanks in advance