[Drupal 6] VIews : Get the total rows and Field Values in Header
While using drupal views module and creating a view of nodes, if you need to display the total number of the rows returned by views in footer, also do some totals of a particular field returned by views, you can do so by below code.
There are also modules which allow us to do the same , but in case where our requirement is minimal and we do not want to install another module this way is good I think !!!! Code : For example your filed name is paymant_total and you want to show the number of rows (payments ) and the total of amount. then the code would be :
NOTE: You have to put this php code in the footer of view, with the input format as php
You can do the same for other field values, if needed.