Sum per page Display sum per page and Grand sum (added in v 1.9)

You can use sum per page function to display sum of any columns values of that page and sum total function to display grand total. Please note that these function display values dynamically on crud table only.

  
                            $pdocrud = new PDOCrud();
                            $pdocrud->crudTableCol(array("product_id","product_name","product_price","product_sell_price"));
                            $pdocrud->colSumPerPage("product_price");
                            $pdocrud->colSumPerPage("product_sell_price");
                            $pdocrud->colSumTotal("product_sell_price");
                            echo $pdocrud->dbTable("products")->render();
                        

Products

Showing 1 to 10 of 107 entries

# Product id Product name Product price Product sell price Actions
1 S10_4698 2003 Harley-Davidson Eagle Drag Bike 91.02 193.66
2 S10_4757 1972 Alfa Romeo GTA 85.68 136.00
3 S10_4962 1962 LanciaA Delta 16V 103.42 147.74
4 S12_1099 1968 Ford Mustang 95.34 194.57
5 S12_1108 2001 Ferrari Enzo 95.59 207.80
6 S12_2823 2002 Suzuki XREO 100.27 150.62
7 S12_3148 1969 Corvair Monza 89.14 151.08
8 S12_3380 1968 Dodge Charger 75.16 117.44
9 S12_3891 1969 Ford Falcon 83.05 173.02
10 S12_3990 1970 Plymouth Hemi Cuda 31.92 79.80
11 Total - 850.59 Total - 1551.73
11 Grand Total- 10523.05
# Product id Product name Product price Product sell price Actions